[wp-trac] [WordPress Trac] #57579: Deprecated: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in admin-header.php

WordPress Trac noreply at wordpress.org
Sun Jan 29 16:55:41 UTC 2023


#57579: Deprecated: strip_tags(): Passing null to parameter #1 ($string) of type
string is deprecated in admin-header.php
--------------------------+-----------------------------
 Reporter:  ipajen        |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Plugins       |    Version:
 Severity:  normal        |   Keywords:  PHP81
  Focuses:                |
--------------------------+-----------------------------
 When using the plugin HD Quiz this warning is given in version
 6.2-alpha-55159 with PHP 8.1.

 Deprecated: strip_tags(): Passing null to parameter #1 ($string) of type
 string is deprecated in /public_html/blog/wp-admin/admin-header.php on
 line 36

 Link to ticket for plugin:
 [https://wordpress.org/support/topic/strip_tags-php8-1-warning/#new-
 topic-0]

 "Core expects the $title global to always be set when wp-admin/admin-
 header.php is included." Is there something Core can do to improve the
 experience here?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57579>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list