[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:48:24 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 jrf):
Replying to [comment:60 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
In that case, that's already been fixed and the fix will be included in WP
6.1.
Relevant commits: [54349] and [54351]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55656#comment:61>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list