[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
Tue Dec 17 05:05:44 UTC 2024


#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:  php81 has-patch needs-testing  |     Focuses:
-------------------------------------------+------------------------------
Changes (by vishalpadhariya):

 * keywords:  php81 needs-patch => php81 has-patch needs-testing


Comment:

 I've resolved the issue by adding a condition to check if the `$string` is
 `null`. If it is, the description/summary will be set to a blank value.

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


More information about the wp-trac mailing list