WordPress/wp-content/themes
hellofromTonya 1105ddf965 Code Modernization: Fix reserved keyword and parameter name mismatches for parent/child classes in Walker::start_el().
In the parent class, renames the parameter `$object` to `$data_object`.

Why? `object` is a PHP reserved keyword.

In each child class: renames the corresponding 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.

Changes for readability:

- `@since` clearly specifies the original parameter name and its new name as well as why the change happened.

- in methods longer than a single line, the generic parameter is reassigned to the original parameter restoring it for context for use within the method. An inline comment is added to explain why this reassignment is made.

- in cases where the original parameter name was too generic, renamed (when reassigning) to a more descriptive name for use within the method.

Follow-up to [7737], [8900], [8970], [14248], [15077], [16100], [25642], [25644], [37051], [37054], [37056], [46271], [47189].

Props jrf, hellofromTonya, sergeybiryukov, azaozz, desrosj, johnbillion.
See #51553.
Built from https://develop.svn.wordpress.org/trunk@51739


git-svn-id: http://core.svn.wordpress.org/trunk@51347 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-08 15:36:59 +00:00
..
twentyeleven Bundled Themes: Version Bump 2010, 2011 and 2012. 2021-07-26 03:15:00 +00:00
twentyfifteen Bundled Themes: Bump bundled theme versions for WordPress 5.8. 2021-07-18 23:05:00 +00:00
twentyfourteen Bundled Themes: Add / character to <img> tags. 2021-08-04 14:24:02 +00:00
twentynineteen Docs: Synchronize documentation for wp_get_attachment_image_attributes filter callbacks in bundled themes: 2021-08-12 19:30:57 +00:00
twentyseventeen Twenty Seventeen: Add support for wa.me links in Social Links menu. 2021-08-16 12:51:01 +00:00
twentysixteen Docs: Synchronize documentation for wp_get_attachment_image_attributes filter callbacks in bundled themes: 2021-08-12 19:30:57 +00:00
twentyten Bundled Themes: Remove redundant semicolons after closing curly brackets. 2021-08-05 13:25:58 +00:00
twentythirteen Twenty Thirteen: Correct indentation in image.php template. 2021-08-05 14:38:57 +00:00
twentytwelve Bundled Themes: Version Bump 2010, 2011 and 2012. 2021-07-26 03:15:00 +00:00
twentytwenty Code Modernization: Fix reserved keyword and parameter name mismatches for parent/child classes in Walker::start_el(). 2021-09-08 15:36:59 +00:00
twentytwentyone Coding Standards: Use static closures when not using $this. 2021-08-26 12:59:02 +00:00
index.php Remove closing PHP tags from the rest of index.php files in wp-content, for consistency with wp-content/index.php. 2014-06-05 15:59:14 +00:00