Opened 5 months ago
Closed 5 months ago
#62262 closed defect (bug) (duplicate)
PHP Deprecated: strip_tags(): Passing null in admin-header.php
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 6.6.1 |
Component: | Administration | Keywords: | |
Focuses: | administration | Cc: |
Description
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 if ( isset( $title ) ) { $title = strip_tags( $title ); }
Tested with:
WordPress 6.6.1
PHP 8.2
Change History (2)
Note: See
TracTickets for help on using
tickets.
Hello @bstkpera, welcome to Trac and thank you for reporting this by opening a ticket here.
This seems to be a bug in the plugin, not WordPress core. If
$title
is not set on a plugin page I think this must be a bug in the plugin. Error messages are to inform developers of bugs in their code. The proposed change will only hide the error, not fix anything.If this only happens when visting this plugin page in admin, I suggest reaching out to the plugin author.