WordPress/wp-includes/widgets
hellofromTonya 68e0c5e520 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.
Built from https://develop.svn.wordpress.org/trunk@51789


git-svn-id: http://core.svn.wordpress.org/trunk@51396 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-09 20:13: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 Widgets: Don't decode HTML entities ahead of the widget constructor. 2021-06-08 23:40:00 +00:00
class-wp-widget-block.php Widgets: Validate HTML before saving block widgets. 2021-07-13 05:59:01 +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 Widgets: Revert [47307]. 2020-02-18 18:19:06 +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:13:57 +00:00
class-wp-widget-meta.php Widgets: Don't decode HTML entities ahead of the widget constructor. 2021-06-08 23:40:00 +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 Widgets: Don't decode HTML entities ahead of the widget constructor. 2021-06-08 23:40:00 +00:00
class-wp-widget-recent-posts.php Widgets: Don't decode HTML entities ahead of the widget constructor. 2021-06-08 23:40:00 +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