WordPress.org

Make WordPress Core

Ticket #16075: 16075-just-filter.diff

File 16075-just-filter.diff, 795 bytes (added by aaroncampbell, 2 years ago)
  • wp-admin/includes/nav-menu.php

     
    628628 
    629629        if ( !$posts ) 
    630630                $error = '<li id="error">'. $post_type['args']->labels->not_found .'</li>'; 
    631          
     631 
    632632        $db_fields = false; 
    633633        if ( is_post_type_hierarchical( $post_type_name ) ) { 
    634634                $db_fields = array( 'parent' => 'post_parent', 'id' => 'ID' ); 
     
    745745                                        } 
    746746                                } 
    747747 
     748                                $posts = apply_filters( 'nav_menu_items_'.$post_type_name, $posts, $args, $post_type ); 
    748749                                $checkbox_items = walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', $posts), 0, (object) $args ); 
    749750 
    750751                                if ( 'all' == $current_tab && ! empty( $_REQUEST['selectall'] ) ) {