Make WordPress Core

#58283 closed defect (bug) (duplicate)

Deprecated preg_replace() warning PHP 8.1

Reported by: aukeklumper's profile aukeklumper Owned by:
Milestone: Priority: normal
Severity: normal Version: 6.2
Component: Menus Keywords: php81
Focuses: administration Cc:

Description (last modified by SergeyBiryukov)

PHP warning is thrown in 6.2 with PHP 8.1 - same issue as #57578

Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

Warning is thrown on:
/wp-admin/nav-menus.php

Change History (1)

#1 @SergeyBiryukov
17 months ago

  • Component changed from Administration to Menus
  • Description modified (diff)
  • Focuses administration added
  • Keywords php81 added
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi there, welcome to WordPress Trac! Thanks for the report.

This is already fixed for WordPress 6.2.1 in [55639] / #57918.

Note: See TracTickets for help on using tickets.