[wp-trac] [WordPress Trac] #57728: PHP 8.1 deprecation notice for gmt_offset on wp-admin/options.php
WordPress Trac
noreply at wordpress.org
Sun Jul 2 16:56:14 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 adi3890):
@oglekler @SergeyBiryukov Just modified the logic of is_string check with
a default value as empty string. This way data will be saved as **empty
string** as it is saved now, and this validation prevents php deprecation
notice.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57728#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list