Make WordPress Core

Opened 3 months ago

Last modified 2 months ago

#59365 new defect (bug)

Deprecated notice when calling get_admin_page_title() on some dashboard pages.

Reported by: apedog's profile apedog Owned by:
Milestone: Awaiting Review Priority: normal
Severity: minor Version:
Component: Administration Keywords: has-patch
Focuses: coding-standards, php-compatibility Cc:

Description

Deprecated	preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated	
wp-admin/includes/plugin.php:2092
preg_replace()
wp-admin/includes/plugin.php:2092
get_plugin_page_hookname()
wp-admin/includes/plugin.php:2056
get_plugin_page_hook()
wp-admin/includes/plugin.php:1980
get_admin_page_title()

This occurs on all pages where global $plugin_page is null (Plugins, Tools, etc.)

Change History (1)

This ticket was mentioned in PR #5231 on WordPress/wordpress-develop by nasimcoderex.


2 months ago
#1

  • Keywords has-patch added

Ticket : https://core.trac.wordpress.org/ticket/59365

### Description:
Check the string before using preg_replace method in wp-admin/includes/plugin.php file

Trac ticket:

Note: See TracTickets for help on using tickets.