[wp-trac] [WordPress Trac] #57762: repair.php gives Deprecated: addcslashes() warning PHP8.2
WordPress Trac
noreply at wordpress.org
Fri Feb 24 15:08:41 UTC 2023
#57762: repair.php gives Deprecated: addcslashes() warning PHP8.2
---------------------------+-----------------------------------------------
Reporter: ipajen | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.2
Component: | Version: trunk
Administration |
Severity: normal | Resolution: fixed
Keywords: php81 has- | Focuses: administration, coding-standards
patch |
---------------------------+-----------------------------------------------
Changes (by SergeyBiryukov):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"55421" 55421]:
{{{
#!CommitTicketReference repository="" revision="55421"
Database: Remove the check for `sitecategories` table on Database Repair
screen.
The table is no longer created by core as of WordPress 3.0, and support
for global terms was removed in WordPress 6.1, so `$wpdb->sitecategories`
is unset by default.
This commit resolves a "passing null to non-nullable" deprecation notice
on PHP 8.1:
{{{
Deprecated: addcslashes(): Passing null to parameter #1 ($string) of type
string is deprecated in wp-includes/class-wpdb.php on line 1804
}}}
The `tables_to_repair` filter is available for plugins to readd the table
or include any additional tables to repair.
Follow-up to [14854], [14880], [54240].
Props ipajen, chiragrathod103, SergeyBiryukov.
Fixes #57762.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57762#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list