[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 Jul 1 11:29:31 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 oglekler):
This can be a quick fix as needed with patch Sergey as suggested but I
believe that it needs further discussion.
Is it ok to have null as gmt_offset in the first place? I wonder if it
needs to be checked from where it's coming from. But somehow with PHP8.1
(by online testing tool) I am getting a fatal error, and it needs to be
addressed anyway. If this is the case, others placed when preg_replace()
is used, need to be checked to avoid receiving null as subject.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57728#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list