Changeset 51739 for trunk/src/wp-includes/class-walker-page.php
- Timestamp:
- 09/08/2021 03:35:32 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-walker-page.php
r50823 r51739 94 94 * @see Walker::start_el() 95 95 * @since 2.1.0 96 * @since 5.9.0 Renamed `$page` to `$data_object` to match parent class for PHP 8 named parameter support. 96 97 * 97 98 * @param string $output Used to append additional content. Passed by reference. 98 * @param WP_Post $ pagePage data object.99 * @param WP_Post $data_object Page data object. 99 100 * @param int $depth Optional. Depth of page. Used for padding. Default 0. 100 101 * @param array $args Optional. Array of arguments. Default empty array. 101 102 * @param int $current_page Optional. Page ID. Default 0. 102 103 */ 103 public function start_el( &$output, $page, $depth = 0, $args = array(), $current_page = 0 ) { 104 public function start_el( &$output, $data_object, $depth = 0, $args = array(), $current_page = 0 ) { 105 // Restores the more descriptive, specific name for use within this method. 106 $page = $data_object; 107 104 108 if ( isset( $args['item_spacing'] ) && 'preserve' === $args['item_spacing'] ) { 105 109 $t = "\t";
Note: See TracChangeset
for help on using the changeset viewer.