Coding Standards: Rename `$r` variable to `$args` for clarity in `walk_page_tree()`.
Follow-up to [9830], [32617], [45667], [52684]. See #54728. Built from https://develop.svn.wordpress.org/trunk@52685 git-svn-id: http://core.svn.wordpress.org/trunk@52274 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a39f5f9d4f
commit
a584be05eb
|
@ -1521,26 +1521,26 @@ function wp_page_menu( $args = array() ) {
|
|||
* @param array $pages
|
||||
* @param int $depth
|
||||
* @param int $current_page
|
||||
* @param array $r
|
||||
* @param array $args
|
||||
* @return string
|
||||
*/
|
||||
function walk_page_tree( $pages, $depth, $current_page, $r ) {
|
||||
if ( empty( $r['walker'] ) ) {
|
||||
function walk_page_tree( $pages, $depth, $current_page, $args ) {
|
||||
if ( empty( $args['walker'] ) ) {
|
||||
$walker = new Walker_Page;
|
||||
} else {
|
||||
/**
|
||||
* @var Walker $walker
|
||||
*/
|
||||
$walker = $r['walker'];
|
||||
$walker = $args['walker'];
|
||||
}
|
||||
|
||||
foreach ( (array) $pages as $page ) {
|
||||
if ( $page->post_parent ) {
|
||||
$r['pages_with_children'][ $page->post_parent ] = true;
|
||||
$args['pages_with_children'][ $page->post_parent ] = true;
|
||||
}
|
||||
}
|
||||
|
||||
return $walker->walk( $pages, $depth, $r, $current_page );
|
||||
return $walker->walk( $pages, $depth, $args, $current_page );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.0-alpha-52684';
|
||||
$wp_version = '6.0-alpha-52685';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue