[wp-trac] [WordPress Trac] #55656: PHP 8.x: various compatibility fixes for WordPress 6.1

WordPress Trac noreply at wordpress.org
Fri Sep 30 19:42:36 UTC 2022


#55656: PHP 8.x: various compatibility fixes for WordPress 6.1
-------------------------------------------------+-------------------------
 Reporter:  hellofromTonya                       |       Owner:
                                                 |  SergeyBiryukov
     Type:  task (blessed)                       |      Status:  accepted
 Priority:  normal                               |   Milestone:  6.1
Component:  General                              |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  php8 php81 has-patch has-unit-tests  |     Focuses:  coding-
                                                 |  standards
-------------------------------------------------+-------------------------

Comment (by tillkruess):

 I don't have a backtrace for:

 {{{
 rtrim(): Passing null to parameter #1 ($string) of type string is
 deprecated in wp-includes/formatting.php:2772
 }}}

 However it appears to be the `load_script_textdomain()` method calling
 `untrailingslashit()`, which calls `rtrim()`.

 https://github.com/WordPress/wordpress-
 develop/blob/62360f5f4b222a4db53e99cdf56df04b66421cf0/src/wp-
 includes/l10n.php#L1068

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55656#comment:60>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list