[wp-trac] [WordPress Trac] #59052: Deprecated: html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in wp-includes/widgets.php on line 1626

WordPress Trac noreply at wordpress.org
Thu Aug 10 16:32:08 UTC 2023


#59052: Deprecated:  html_entity_decode(): Passing null to parameter #1 ($string)
of type string is deprecated in wp-includes/widgets.php on line 1626
--------------------------+------------------------------
 Reporter:  treibstoff    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  6.3
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by craigfrancis):

 Hi @treibstoff, there is a summary about these errors at
 [https://make.wordpress.org/core/2022/01/10/wordpress-5-9-and-
 php-8-0-8-1/#php-8-1-remaining-known-deprecation-notices WordPress 5.9 and
 PHP 8.0-8.1].

 I'm not sure if/where @jrf is tracking them now, as #54730 has been
 closed?

 Personally I think [https://wiki.php.net/rfc/null_coercion_consistency PHP
 should revert] before PHP 9 throws an exception when this happens -
 considering other variable types (e.g. integers) are coerced without
 issue, and NULL is coerced in other contexts (e.g. concatenation).

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59052#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list