Opened 3 years ago
Closed 3 years ago
#57762 closed defect (bug) (fixed)
repair.php gives Deprecated: addcslashes() warning PHP8.2
| Reported by: | ipajen | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.2 |
| Component: | Administration | Version: | 6.2 |
| Severity: | normal | Keywords: | php81 has-patch |
| Cc: | Focuses: | administration, coding-standards |
Description
6.2-beta2-55354, PHP 8.2.0
- Enable Debug
define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', true );
- Enable following in wp-config.php
define('WP_ALLOW_REPAIR', true); - Run http://localhost/wp/wp-admin/maint/repair.php
- 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
Attachments (1)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Fixed the warning error