[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:49:05 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: php81 needs-patch | Focuses:
-------------------------------+------------------------------
Changes (by jrf):
* keywords: => php81 needs-patch
Comment:
@treibstoff Thanks for reporting this.
In contrast to most reports of this kind (which are caused by
plugins/themes ''doing it wrong''), this does actually look like something
which should be handled/fixed in WP Core in the `wp_widget_rss_output()`
function.
It appears that the RSS feed/URL is missing the description element and
the code looping through the RSS feed items doesn't take that possibility
into account.
By the looks of it (based on a quick glance), it also doesn't correctly
handle the possibility that other expected elements could be missing.
While it is debatable whether that makes the RSS feed invalid (would need
checking against the RSS specifications/RFC), I do think WP should handle
this gracefully.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59052#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list