WordPress.org

Make WordPress Core

Changeset 13727


Ignore:
Timestamp:
03/17/2010 06:33:53 AM (12 years ago)
Author:
markjaquith
Message:

Unlimited number of pages and custom links for nav-menu. Todo: AJAX-based autocomplete, so this scales better. see #11817

File:
1 edited

Legend:

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

    r13726 r13727  
    9999 */
    100100function wp_nav_menu_item_link_metabox() {
    101     $args = array( 'post_status' => 'any', 'post_type' => 'nav_menu_item', 'meta_value' => 'custom' ); 
     101    $args = array( 'post_status' => 'any', 'post_type' => 'nav_menu_item', 'meta_value' => 'custom', 'showposts' => -1 );
    102102   
    103103    // @todo transient caching of these results with proper invalidation on updating links
     
    146146 */
    147147function wp_nav_menu_item_post_type_metabox( $object, $post_type ) {
    148     $args = array( 'post_type' => $post_type['args']->name, 'post_status' => 'publish' );
     148    $args = array( 'post_type' => $post_type['args']->name, 'post_status' => 'publish', 'showposts' => -1 );
    149149   
    150150    if ( 'attachment' == $post_type['args']->name )
Note: See TracChangeset for help on using the changeset viewer.