Changeset 43481
- Timestamp:
- 07/17/2018 02:39:59 PM (6 years ago)
- Location:
- branches/4.9
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
-
branches/4.9/src/wp-includes/class-wp-customize-nav-menus.php
r42621 r43481 314 314 // Prepend list of posts with nav_menus_created_posts search results on first page. 315 315 $nav_menus_created_posts_setting = $this->manager->get_setting( 'nav_menus_created_posts' ); 316 if ( 1 === $args['pagenum'] && $nav_menus_created_posts_setting && count( $nav_menus_created_posts_setting ) > 0 ) {316 if ( 1 === $args['pagenum'] && $nav_menus_created_posts_setting && count( $nav_menus_created_posts_setting->value() ) > 0 ) { 317 317 $stub_post_query = new WP_Query( array_merge( 318 318 $query, -
branches/4.9/tests/phpunit/tests/customize/nav-menus.php
r42621 r43481 293 293 function test_search_available_items_query() { 294 294 $menus = new WP_Customize_Nav_Menus( $this->wp_customize ); 295 do_action( 'customize_register', $this->wp_customize ); 295 296 296 297 // Create posts.
Note: See TracChangeset
for help on using the changeset viewer.