Make WordPress Core


Ignore:
Timestamp:
03/15/2013 01:16:38 PM (12 years ago)
Author:
markjaquith
Message:

Turn the Nav Menu meta boxes into an accordion. Less sprawling and overwhelming.

  • Registration stays the same — they're meta boxes
  • Call do_accordion_sections() instead of do_meta_boxes() and they render as an accordion

props DrewAPicture, lessbloat, jkudish. fixes #23450. see #23449

File:
1 edited

Legend:

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

    r23641 r23707  
    2424
    2525wp_enqueue_script( 'nav-menu' );
     26wp_enqueue_script( 'accordion' );
    2627
    2728if ( wp_is_mobile() )
     
    511512            <input type="hidden" name="action" value="add-menu-item" />
    512513            <?php wp_nonce_field( 'add-menu_item', 'menu-settings-column-nonce' ); ?>
    513             <?php do_meta_boxes( 'nav-menus', 'side', null ); ?>
     514            <?php do_accordion_sections( 'nav-menus', 'side', null ); ?>
    514515        </form>
    515516
Note: See TracChangeset for help on using the changeset viewer.