Changeset 52685 for trunk/src/wp-includes/post-template.php
- Timestamp:
- 02/07/2022 02:19:31 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-template.php
r52204 r52685 1522 1522 * @param int $depth 1523 1523 * @param int $current_page 1524 * @param array $ r1524 * @param array $args 1525 1525 * @return string 1526 1526 */ 1527 function walk_page_tree( $pages, $depth, $current_page, $ r) {1528 if ( empty( $ r['walker'] ) ) {1527 function walk_page_tree( $pages, $depth, $current_page, $args ) { 1528 if ( empty( $args['walker'] ) ) { 1529 1529 $walker = new Walker_Page; 1530 1530 } else { … … 1532 1532 * @var Walker $walker 1533 1533 */ 1534 $walker = $ r['walker'];1534 $walker = $args['walker']; 1535 1535 } 1536 1536 1537 1537 foreach ( (array) $pages as $page ) { 1538 1538 if ( $page->post_parent ) { 1539 $ r['pages_with_children'][ $page->post_parent ] = true;1540 } 1541 } 1542 1543 return $walker->walk( $pages, $depth, $ r, $current_page );1539 $args['pages_with_children'][ $page->post_parent ] = true; 1540 } 1541 } 1542 1543 return $walker->walk( $pages, $depth, $args, $current_page ); 1544 1544 } 1545 1545
Note: See TracChangeset
for help on using the changeset viewer.