[wp-trac] [WordPress Trac] #57728: PHP 8.1 deprecation notice for gmt_offset on wp-admin/options.php
WordPress Trac
noreply at wordpress.org
Sat Apr 8 15:07:51 UTC 2023
#57728: PHP 8.1 deprecation notice for gmt_offset on wp-admin/options.php
-----------------------------+---------------------
Reporter: SergeyBiryukov | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.3
Component: Date/Time | Version:
Severity: normal | Resolution:
Keywords: php81 has-patch | Focuses:
-----------------------------+---------------------
Comment (by SergeyBiryukov):
Thanks for the PR!
Looks like it might have unintended consequences though, as some options,
e.g. `blog_public`, actually rely on `null` being passed to
`update_option()` if the option was not sent to `options.php` see [21849]
and [21851] / #16416.
I believe we can specifically check if `gmt_option` is a string in
`sanitize_option()`, see [attachment:"57728.diff"].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57728#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list