diff --git src/wp-includes/class-wp-customize-nav-menus.php src/wp-includes/class-wp-customize-nav-menus.php
index 1a55fa6ce2..d2a346d5b0 100644
|
|
final class WP_Customize_Nav_Menus { |
324 | 324 | |
325 | 325 | // Prepend list of posts with nav_menus_created_posts search results on first page. |
326 | 326 | $nav_menus_created_posts_setting = $this->manager->get_setting( 'nav_menus_created_posts' ); |
327 | | if ( 1 === $args['pagenum'] && $nav_menus_created_posts_setting && count( $nav_menus_created_posts_setting ) > 0 ) { |
| 327 | if ( 1 === $args['pagenum'] && $nav_menus_created_posts_setting && count( $nav_menus_created_posts_setting->value() ) > 0 ) { |
328 | 328 | $stub_post_query = new WP_Query( |
329 | 329 | array_merge( |
330 | 330 | $query, |