[wp-trac] [WordPress Trac] #61179: Deprecated messages about passing null in widgets.php

WordPress Trac noreply at wordpress.org
Thu May 9 08:40:07 UTC 2024


#61179: Deprecated messages about passing null in widgets.php
--------------------------+-----------------------------
 Reporter:  Presskopp     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Widgets       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I found the following message in my error logs:

 {{{PHP Deprecated:  html_entity_decode(): Passing null to parameter #1
 ($string) of type string is deprecated in ...\wp-includes\widgets.php on
 line 1630}}}

 This is the latest nightly on PHP8.3, but if you search for "widgets.php
 on line 1630" in your search engine, you will find online sites having the
 same issue

 Line 1630 is the following:

 {{{$desc = html_entity_decode( $item->get_description(), ENT_QUOTES,
 get_option( 'blog_charset' ) );}}}

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


More information about the wp-trac mailing list