Make WordPress Core

Opened 17 months ago

Closed 17 months ago

Last modified 17 months ago

#57754 closed defect (bug) (duplicate)

Deprecated Error Passing null to parameter in preg_replace() in Privacy Page on WP 6.1.1 and PHP 8.2.1

Reported by: dhrupo's profile dhrupo Owned by:
Milestone: Priority: normal
Severity: normal Version: 6.1.1
Component: Privacy Keywords: has-patch
Focuses: Cc:

Description

Getting deprecated Error in preg_replace method while hitting Settings -> Privacy page. Twenty twenty three theme is active and no plugin is activated and PHP version is 8.2.1 and WordPress version is 6.1.1

I guess the preg_replace method's parameter is getting a null value here. Need to pass a array|string here.

https://drive.google.com/file/d/1Ixkk98t5B5KGbHeD7r5oK1ubMtbyP5MH/view

Attachments (1)

photo_2023-02-17 16.34.37.jpeg (82.3 KB) - added by dhrupo 17 months ago.
error_preg_replace

Download all attachments as: .zip

Change History (5)

@dhrupo
17 months ago

error_preg_replace

This ticket was mentioned in PR #4096 on WordPress/wordpress-develop by @hasanmisbah.


17 months ago
#1

  • Keywords has-patch added

FIXED Deprecated Error Passing null to parameter in preg_replace() in Privacy Page on WP 6.1.1 and PHP 8.2.1

Trac ticket: https://core.trac.wordpress.org/ticket/57754

#2 @bijit027
17 months ago

Everything works fine. Great job

#3 @SergeyBiryukov
17 months ago

  • 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 in [55263] / #57578.

@SergeyBiryukov commented on PR #4096:


17 months ago
#4

Thanks for the PR!

This deprecation notice is already fixed for WordPress 6.2 in [55263] / #57578.

Note: See TracTickets for help on using tickets.