Ticket #16075: 16075-just-filter.diff
File 16075-just-filter.diff, 795 bytes (added by , 13 years ago) |
---|
-
wp-admin/includes/nav-menu.php
628 628 629 629 if ( !$posts ) 630 630 $error = '<li id="error">'. $post_type['args']->labels->not_found .'</li>'; 631 631 632 632 $db_fields = false; 633 633 if ( is_post_type_hierarchical( $post_type_name ) ) { 634 634 $db_fields = array( 'parent' => 'post_parent', 'id' => 'ID' ); … … 745 745 } 746 746 } 747 747 748 $posts = apply_filters( 'nav_menu_items_'.$post_type_name, $posts, $args, $post_type ); 748 749 $checkbox_items = walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', $posts), 0, (object) $args ); 749 750 750 751 if ( 'all' == $current_tab && ! empty( $_REQUEST['selectall'] ) ) {