[wp-trac] [WordPress Trac] #53635: PHP 8.1: various compatibility fixes
WordPress Trac
noreply at wordpress.org
Sat Jul 10 11:15:01 UTC 2021
#53635: PHP 8.1: various compatibility fixes
----------------------------+-------------------------------
Reporter: SergeyBiryukov | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: 5.9
Component: General | Version:
Severity: normal | Resolution:
Keywords: php81 | Focuses: coding-standards
----------------------------+-------------------------------
Comment (by SergeyBiryukov):
In [changeset:"51396" 51396]:
{{{
#!CommitTicketReference repository="" revision="51396"
Code Modernization: Only check collation in `wpdb` methods if the query is
not empty.
This avoids a deprecation notice on PHP 8.1 caused by passing `null`
instead of a string to `ltrim()` in `wpdb::check_safe_collation()`, and
maintains the current behaviour.
Follow-up to [30345], [32162], [33455].
See #53635.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53635#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list