[wp-trac] [WordPress Trac] #59818: [PHP 8.1] deprecated null in `explode()` for 'ping_sites' in `wp-admin/options-writing.php` with "Discourage search engines" on
WordPress Trac
noreply at wordpress.org
Fri Jun 14 15:40:54 UTC 2024
#59818: [PHP 8.1] deprecated null in `explode()` for 'ping_sites' in `wp-admin
/options-writing.php` with "Discourage search engines" on
----------------------------------------------+----------------------------
Reporter: kitchin | Owner:
| SergeyBiryukov
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 6.6
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: php81 has-patch has-testing-info | Focuses: php-
| compatibility
----------------------------------------------+----------------------------
Comment (by hellofromTonya):
== Reproduction Report
=== Environment
- OS: macOS 14.5
- Web Server: Nginx
- PHP: 8.3
- WordPress: 6.6-beta2-58411
- Browser: Firefox 126.0.1
- Theme: TT4
- Active Plugins: None
== Testing Steps
1. Ran `wp db reset --yes` to wipe the database.
2. Walked through the install, while checking "Discourage search engines"
option.
3. Logged in.
4. Navigated to Settings / Writing.
5. Clicked "Save Changes" button.
6. Then checked the logs.
=== Actual Results
- ✅ Able to reproduce after clicking the "Save Changes" button.
{{{
[14-Jun-2024 15:38:51 UTC] PHP Deprecated: explode(): Passing null to
parameter #2 ($string) of type string is deprecated in ./wp-
includes/formatting.php on line 4952
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59818#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list