[wp-trac] [WordPress Trac] #57762: repair.php gives Deprecated: addcslashes() warning PHP8.2
WordPress Trac
noreply at wordpress.org
Fri Feb 17 21:49:30 UTC 2023
#57762: repair.php gives Deprecated: addcslashes() warning PHP8.2
----------------------------+-----------------------------
Reporter: ipajen | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: trunk
Severity: normal | Keywords: PHP82
Focuses: |
----------------------------+-----------------------------
6.2-beta2-55354, PHP 8.2.0
1. Enable Debug
{{{
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', true );
}}}
2. Enable following in wp-config.php
{{{
define('WP_ALLOW_REPAIR', true);
}}}
3. Run http://localhost/wp/wp-admin/maint/repair.php
4. Run Repair Database or Repair and Optimize Database
Following Deprecated warning is given
{{{
Deprecated: addcslashes(): Passing null to parameter #1 ($string) of type
string is deprecated in C:\xampp\htdocs\wp\wp-includes\class-wpdb.php on
line 1804
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57762>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list