WordPress/wp-includes/widgets
Aaron Jorbin e2104af75e Widgets: Prevent infinite loop in PHP8+ if the URL for the widget instance is incorrectly defined
This checks to make sure $link isn't empty before attempting to manipulate it.  A simple test to demonstrate this can be seen at https://3v4l.org/PgSZg. Unit tests for both what already works and what is fixed by this change.

Props hellofromTonya, dd32, peterwilsoncc.
Fixes #53278.


Built from https://develop.svn.wordpress.org/trunk@51107


git-svn-id: http://core.svn.wordpress.org/trunk@50716 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-08 19:35:57 +00:00
..
class-wp-nav-menu-widget.php REST API: Add widget endpoints 2021-05-25 08:27:57 +00:00
class-wp-widget-archives.php REST API: Add widget endpoints 2021-05-25 08:27:57 +00:00
class-wp-widget-block.php Docs: Correct type for the `$widget` parameter of the `widget_block_content` filter. 2021-06-02 10:57:57 +00:00
class-wp-widget-calendar.php REST API: Add widget endpoints 2021-05-25 08:27:57 +00:00
class-wp-widget-categories.php REST API: Add widget endpoints 2021-05-25 08:27:57 +00:00
class-wp-widget-custom-html.php REST API: Add widget endpoints 2021-05-25 08:27:57 +00:00
class-wp-widget-links.php General: Replace older-style PHP type conversion functions with type casts. 2020-10-08 21:15:13 +00:00
class-wp-widget-media-audio.php
class-wp-widget-media-gallery.php
class-wp-widget-media-image.php Coding Standards: Replace alias PHP functions with the canonical names. 2020-10-18 17:27:06 +00:00
class-wp-widget-media-video.php
class-wp-widget-media.php REST API: Add widget endpoints 2021-05-25 08:27:57 +00:00
class-wp-widget-meta.php REST API: Add widget endpoints 2021-05-25 08:27:57 +00:00
class-wp-widget-pages.php REST API: Add widget endpoints 2021-05-25 08:27:57 +00:00
class-wp-widget-recent-comments.php REST API: Add widget endpoints 2021-05-25 08:27:57 +00:00
class-wp-widget-recent-posts.php REST API: Add widget endpoints 2021-05-25 08:27:57 +00:00
class-wp-widget-rss.php Widgets: Prevent infinite loop in PHP8+ if the URL for the widget instance is incorrectly defined 2021-06-08 19:35:57 +00:00
class-wp-widget-search.php REST API: Add widget endpoints 2021-05-25 08:27:57 +00:00
class-wp-widget-tag-cloud.php REST API: Add widget endpoints 2021-05-25 08:27:57 +00:00
class-wp-widget-text.php REST API: Add widget endpoints 2021-05-25 08:27:57 +00:00