WordPress.org

Make WordPress Core

Changeset 14586


Ignore:
Timestamp:
05/12/10 20:47:08 (5 years ago)
Author:
ryan
Message:

Pass menu id instead of name. Allows menus with commas in the name. Props filosofo. fixes #13368

File:
1 edited

Legend:

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

    r14574 r14586  
    300300        'post_title' => $args['menu-item-title'], 
    301301        'post_type' => 'nav_menu_item', 
    302         'tax_input' => array( 'nav_menu' => $menu->name ), 
     302        'tax_input' => array( 'nav_menu' => array( intval( $menu->term_id ) ) ), 
    303303    ); 
    304304 
Note: See TracChangeset for help on using the changeset viewer.