WordPress.org

Make WordPress Core

Changeset 17951


Ignore:
Timestamp:
05/18/2011 04:44:21 PM (10 years ago)
Author:
markjaquith
Message:

Add a per-post-type nav menu items filter for plugin control. props aaroncampbell. see #16075

File:
1 edited

Legend:

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

    r17796 r17951  
    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 ) ) {
     
    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
Note: See TracChangeset for help on using the changeset viewer.