wordpress-develop/src/wp-includes/widgets
Tonya Mork cc1632c046 Code Modernization: Fix parameter name mismatches for parent/child classes in WP_Widget::update().
In each child class, renames the parameter to match the parent's method signature.
Why? PHP 8 introduces the ability to pass named arguments to function/method calls. This means the child and parent method signatures (i.e. parameter names) need to match.

Adds @since to clearly specify why the change happened.

Replaces the original with the variable name with within each method.
Why? The new name is more specific and descriptive, which improves readability.

Follow-up to [10782], [25090], [26556], [40640].

Props jrf, hellofromTonya, sergeybiryukov, azaozz, desrosj, johnbillion.
See #51553.

git-svn-id: https://develop.svn.wordpress.org/trunk@51789 602fd350-edb4-49c9-b593-d223f7449a82
2021-09-09 20:12:58 +00:00
..
class-wp-nav-menu-widget.php REST API: Add widget endpoints 2021-05-25 08:26:21 +00:00
class-wp-widget-archives.php Widgets: Don't decode HTML entities ahead of the widget constructor. 2021-06-08 23:38:50 +00:00
class-wp-widget-block.php Widgets: Validate HTML before saving block widgets. 2021-07-13 05:57:04 +00:00
class-wp-widget-calendar.php REST API: Add widget endpoints 2021-05-25 08:26:21 +00:00
class-wp-widget-categories.php REST API: Add widget endpoints 2021-05-25 08:26:21 +00:00
class-wp-widget-custom-html.php REST API: Add widget endpoints 2021-05-25 08:26:21 +00:00
class-wp-widget-links.php General: Replace older-style PHP type conversion functions with type casts. 2020-10-08 21:13:57 +00:00
class-wp-widget-media-audio.php Docs: Remove @return void from widget DocBlocks. 2020-01-10 00:28:10 +00:00
class-wp-widget-media-gallery.php Docs: Remove @return void from widget DocBlocks. 2020-01-10 00:28:10 +00:00
class-wp-widget-media-image.php Coding Standards: Replace alias PHP functions with the canonical names. 2020-10-18 17:25:10 +00:00
class-wp-widget-media-video.php Widgets: Revert [47307]. 2020-02-18 18:17:53 +00:00
class-wp-widget-media.php Code Modernization: Fix parameter name mismatches for parent/child classes in WP_Widget::update(). 2021-09-09 20:12:58 +00:00
class-wp-widget-meta.php Widgets: Don't decode HTML entities ahead of the widget constructor. 2021-06-08 23:38:50 +00:00
class-wp-widget-pages.php REST API: Add widget endpoints 2021-05-25 08:26:21 +00:00
class-wp-widget-recent-comments.php Widgets: Don't decode HTML entities ahead of the widget constructor. 2021-06-08 23:38:50 +00:00
class-wp-widget-recent-posts.php Widgets: Don't decode HTML entities ahead of the widget constructor. 2021-06-08 23:38:50 +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:34:28 +00:00
class-wp-widget-search.php REST API: Add widget endpoints 2021-05-25 08:26:21 +00:00
class-wp-widget-tag-cloud.php REST API: Add widget endpoints 2021-05-25 08:26:21 +00:00
class-wp-widget-text.php REST API: Add widget endpoints 2021-05-25 08:26:21 +00:00