[wp-trac] [WordPress Trac] #61879: Deprecation Warning

WordPress Trac noreply at wordpress.org
Thu Aug 15 14:33:59 UTC 2024


#61879: Deprecation Warning
--------------------------+-----------------------------
 Reporter:  pcalvo        |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  trunk
 Severity:  minor         |   Keywords:  has-patch
  Focuses:                |
--------------------------+-----------------------------
 When accessing the WordPress admin page, a deprecation warning is
 displayed in the error logs:

  WARNING: [pool www] child 7 said into stderr: "NOTICE: PHP message: PHP
 Deprecated:  htmlspecialchars(): Passing null to parameter #1 ($string) of
 type string is deprecated in /public/wordpress/wp-includes/formatting.php
 on line 4720"

 This issue arises because the strip_tags() function is being passed a null
 value. As of PHP 8.2, 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/61879>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list