WordPress.org

Make WordPress Core

Changeset 38702


Ignore:
Timestamp:
10/03/2016 02:34:46 AM (3 years ago)
Author:
westonruter
Message:

Menus: Restore checkboxes in post type search which were lost in [38584].

The $args variable was being overridden instead of extended, therefore causing the walker to be dropped.

Fixes #33742.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/nav-menu.php

    r38672 r38702  
    7272        if ( 'posttype' == $matches[1] && get_post_type_object( $matches[2] ) ) {
    7373            $post_type_obj = _wp_nav_menu_meta_box_object( get_post_type_object( $matches[2] ) );
    74             $args = array(
    75                 'no_found_rows'          => true,
    76                 'update_post_meta_cache' => false,
    77                 'update_post_term_cache' => false,
    78                 'posts_per_page'         => 10,
    79                 'post_type'              => $matches[2],
    80                 's'                      => $query,
     74            $args = array_merge(
     75                $args,
     76                array(
     77                    'no_found_rows'          => true,
     78                    'update_post_meta_cache' => false,
     79                    'update_post_term_cache' => false,
     80                    'posts_per_page'         => 10,
     81                    'post_type'              => $matches[2],
     82                    's'                      => $query,
     83                )
    8184            );
    8285            if ( isset( $post_type_obj->_default_query ) ) {
Note: See TracChangeset for help on using the changeset viewer.