Changeset 51739 for trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-walker-page.php
- Timestamp:
- 09/08/2021 03:35:32 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-walker-page.php
r51322 r51739 21 21 * 22 22 * @since Twenty Twenty 1.0 23 * @since Twenty Twenty 1.9 Renamed `$page` to `$data_object` to match parent class for PHP 8 named parameter support. 23 24 * 24 25 * @see Walker::start_el() 25 26 * 26 27 * @param string $output Used to append additional content. Passed by reference. 27 * @param WP_Post $ pagePage data object.28 * @param WP_Post $data_object Page data object. 28 29 * @param int $depth Optional. Depth of page. Used for padding. Default 0. 29 30 * @param array $args Optional. Array of arguments. Default empty array. 30 31 * @param int $current_page Optional. Page ID. Default 0. 31 32 */ 32 public function start_el( &$output, $page, $depth = 0, $args = array(), $current_page = 0 ) { 33 public function start_el( &$output, $data_object, $depth = 0, $args = array(), $current_page = 0 ) { 34 // Restores the more descriptive, specific name for use within this method. 35 $page = $data_object; 33 36 34 37 if ( isset( $args['item_spacing'] ) && 'preserve' === $args['item_spacing'] ) {
Note: See TracChangeset
for help on using the changeset viewer.