Opened 2 years ago
Closed 2 years ago
#61841 closed defect (bug) (duplicate)
Deprecation Warning
| Reported by: | behzadr89 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 6.6.1 |
| Severity: | normal | Keywords: | php81 has-patch |
| Cc: | Focuses: | administration, php-compatibility |
Description
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.
Change History (2)
This ticket was mentioned in PR #7156 on WordPress/wordpress-develop by @narenin.
2 years ago
#1
- Keywords has-patch added
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Trac ticket: https://core.trac.wordpress.org/ticket/61841