diff --git a/src/wp-includes/class-wp-customize-manager.php b/src/wp-includes/class-wp-customize-manager.php index fe03a93c1e..093243ef15 100644 --- a/src/wp-includes/class-wp-customize-manager.php +++ b/src/wp-includes/class-wp-customize-manager.php @@ -5764,7 +5764,15 @@ final class WP_Customize_Manager { } } } - return 0 !== count( get_pages( array( 'number' => 1 ) ) ); + + return 0 !== count( + get_pages( + array( + 'number' => 1, + 'hierarchical' => 0, + ) + ) + ); } /**