[wp-trac] [WordPress Trac] #61841: Deprecation Warning
WordPress Trac
noreply at wordpress.org
Thu Aug 8 01:32:59 UTC 2024
#61841: Deprecation Warning
-------------------------------------+-------------------------------------
Reporter: behzadr89 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 6.6.1
Severity: normal | Keywords: admin deprecation php8
Focuses: administration, php- | strip_tags warning error
compatibility | compatibility
-------------------------------------+-------------------------------------
When accessing the WordPress admin page, a deprecation warning is
displayed in the error logs:
Deprecated: strip_tags(): Passing null to parameter #1 ($string) of type
string is deprecated in /home3/atiwpcom/public_html/wp-admin/admin-
header.php on line 36
This issue arises because the strip_tags() function is being passed a null
value. As of PHP 8.1, passing null to strip_tags() is deprecated and will
trigger a warning. The code should ensure that a non-null value is passed
to strip_tags() to prevent this warning.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61841>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list