[wp-trac] [WordPress Trac] #64283: PHP Deprecated: strip_tags(): Passing null to parameter #1 ($string) admin-header.php on line 41
WordPress Trac
noreply at wordpress.org
Thu Nov 20 20:32:36 UTC 2025
#64283: PHP Deprecated: strip_tags(): Passing null to parameter #1 ($string)
admin-header.php on line 41
--------------------------+------------------------------------------------
Reporter: dglingren | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: | Version:
Administration |
Severity: minor | Resolution:
Keywords: | Focuses: administration, php-compatibility
--------------------------+------------------------------------------------
Comment (by dglingren):
Further investigation reveals that this is caused by obsolete code in my
plugin, Media Library Assistant. WordPress 5.3 added a position argument
to the add_submenu_page() function and my code did not keep up.
In any case, the get_admin_page_title() function can return an empty
result and testing for this in admin-header.php would avoid the deprecated
message.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64283#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list