WordPress.org

Make WordPress Core

Ticket #32237: 32237.patch

File 32237.patch, 500 bytes (added by tyxla, 4 years ago)

Handle _default_query for taxonomies in wp_nav_menu_item_taxonomy_meta_box()

  • src/wp-admin/includes/nav-menu.php

     
    907907                'pad_counts' => false,
    908908        );
    909909
     910        if ( isset( $taxonomy['args']->_default_query ) )
     911                $args = array_merge( $args, (array) $taxonomy['args']->_default_query );
     912
    910913        $terms = get_terms( $taxonomy_name, $args );
    911914
    912915        if ( ! $terms || is_wp_error($terms) ) {