[wp-trac] [WordPress Trac] #62262: PHP Deprecated: strip_tags(): Passing null in admin-header.php
WordPress Trac
noreply at wordpress.org
Mon Oct 21 07:13:49 UTC 2024
#62262: PHP Deprecated: strip_tags(): Passing null in admin-header.php
----------------------------+-----------------------------
Reporter: bstkpera | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 6.6.1
Severity: normal | Keywords:
Focuses: administration |
----------------------------+-----------------------------
I get following error, when I open wp-admin/tools.php?page=action-
scheduler (WPForms Plugin):
PHP Deprecated: strip_tags(): Passing null to parameter 1 ($string) of
type string is deprecated in wp-admin/admin-header.php on line 36
Change the line to:
{{{#!php
<?php
if ( isset( $title ) ) {
$title = strip_tags( $title );
}
}}}
Tested with:
WordPress 6.6.1
PHP 8.2
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62262>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list