Make WordPress Core

Changeset 13544


Ignore:
Timestamp:
03/02/2010 03:59:28 AM (17 years ago)
Author:
markjaquith
Message:

Clean up whitespace in nav-menu.php see #11817

File:
1 edited

Legend:

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

    r13542 r13544  
    5858        // if ( ! current_user_can('delete_menus') )
    5959        //      wp_die( __( 'Cheatin’ uh?' ));
    60        
     60
    6161        $menu_id = (int) $_GET['delete-menu'];
    6262        check_admin_referer( 'delete_menu-' . $menu_id );
    63        
     63
    6464        wp_delete_nav_menu( $menu_id );
    6565        $messages_div = '<div id="message" class="updated fade below-h2"><p>' . __('Menu successfully deleted.') . '</p></div>';
     
    7979        $menu_selected_id = $menus[0]->term_id;
    8080
    81 // Get the name of the current Menu 
     81// Get the name of the current Menu
    8282$menu_title = '';
    8383$valid_menu = false;
     
    122122        $menu_items = wp_get_nav_menu_items( $menu_selected_id, array('orderby' => 'ID', 'output' => ARRAY_A, 'output_key' => 'ID') );
    123123        $parent_menu_ids = array();
    124        
     124
    125125        // Loop through all POST variables
    126126        for ( $k = 1; $k <= $post_counter; $k++ ) {
     
    131131                $custom_linkurl = ( isset( $_POST['item-url'.$k] ) && 'custom' == $_POST['linktype'.$k] ) ? $_POST['item-url'.$k] : '';
    132132                $custom_description = isset( $_POST['item-description'.$k] )? $_POST['item-description'.$k] : '';
    133                
     133
    134134                // doesn't seem to be used by UI
    135135                $position = isset( $_POST['item-position'.$k] )? $_POST['item-position'.$k] : 0;
     
    145145                if ( $parent_id > 0 && isset( $parent_menu_ids[$parent_id] ) )
    146146                        $post['post_parent'] = $parent_menu_ids[$parent_id];
    147                
     147
    148148                // New menu item
    149149                if ( $db_id == 0 ) {
     
    180180        <?php echo $messages_div; ?>
    181181        <div class="hide-if-js error"><p><?php _e('You do not have JavaScript enabled in your browser. Please enable it to access the Menus functionality.'); ?></p></div>
    182        
     182
    183183        <form onsubmit="wp_update_post_data();" action="<?php echo admin_url( 'nav-menus.php' ); ?>" method="post" enctype="multipart/form-data">
    184184                <?php if ( !empty($menus) && count($menus) > 1 ) : ?>
     
    196196                </ul>
    197197                <?php endif; ?>
    198                
     198
    199199                <div id="menu-management" class="metabox-holder has-right-sidebar">
    200200                        <div id="post-body">
     
    202202                                        <div id="normal-sortables" class="meta-box-sortables ui-sortable">
    203203                                        <?php if ( $valid_menu and ! empty( $menus ) ) : ?>
    204                                                 <div id="menu-container" class="postbox">       
     204                                                <div id="menu-container" class="postbox">
    205205                                                        <h3 class="hndle"><?php echo esc_html( $menu_title ); ?></h3>
    206206                                                        <div class="inside">
     
    211211                                                                        echo wp_get_nav_menu( array( 'type' => 'backend', 'menu' => $menu_selected_id, 'ul_class' => 'menu' ) );
    212212                                                                ?>
    213                                                                
     213
    214214                                                                <div id="queue" class="hide">
    215215                                                                </div><!--/#queue-->
     
    231231                        <div id="menu-settings-column" class="inner-sidebar">
    232232                                <div id="side-sortables" class="meta-box-sortables ui-sortable">
    233                                        
     233
    234234                                        <div id="create-menu" class="postbox">
    235235                                                <h3 class="hndle"><?php esc_html_e('Create Menu'); ?></h3>
     
    241241                                                </div><!-- /.inside-->
    242242                                        </div><!--END #create-menu-->
    243                                        
     243
    244244                                        <div id="add-custom-link" class="postbox">
    245245                                                <h3 class="hndle"><?php esc_html_e('Add a Custom Link'); ?></h3>
    246                                                 <div class="inside">                                                   
     246                                                <div class="inside">
    247247                                                        <p id="menu-item-url-wrap">
    248248                                                                <label class="howto" for="menu-item-url">
     
    258258                                                                </label>
    259259                                                        </p>
    260                                                        
     260
    261261                                                        <p class="button-controls">
    262262                                                                <a class="show-all"><?php _e('View All'); ?></a>
     
    276276                                                </div><!-- /.inside-->
    277277                                        </div><!-- /#add-custom-link-->
    278                                        
     278
    279279                                        <div id="add-pages" class="postbox">
    280280                                                <h3 class="hndle"><?php esc_html_e('Add an Existing Page'); ?></h3>
     
    300300                                                                        var posts = "<?php echo esc_js( $page_name ); ?>".split('|');
    301301                                                                        jQuery('#add-pages .quick-search').autocomplete(posts);
    302                                                                        
    303                                                                        
     302
     303
    304304                                                                        jQuery('#add-pages .quick-search').result(function(event, data, formatted) {
    305305                                                                                jQuery('#add-pages .list-wrap').css('display','block');
     
    314314                                                                <a class="quick-search-submit button"><?php _e('Search'); ?></a>
    315315                                                        </p>
    316                                                        
     316
    317317                                                        <p class="button-controls">
    318318                                                                <a class="show-all"><?php _e('View All'); ?></a>
    319319                                                                <a class="hide-all"><?php _e('Hide All'); ?></a>
    320320                                                        </p>
    321                                                        
     321
    322322                                                        <div id="existing-pages" class="list-wrap">
    323323                                                                <div class="list-container">
     
    333333                                                </div><!-- /.inside-->
    334334                                        </div><!--END #add-pages-->
    335                                        
     335
    336336                                        <div id="add-categories" class="postbox">
    337337                                                <h3 class="hndle"><?php esc_html_e('Add an Existing Category'); ?></h3>
     
    376376                                                                <a class="quick-search-submit button"><?php _e('Search'); ?></a>
    377377                                                        </p>
    378                                                        
     378
    379379                                                        <p class="button-controls">
    380380                                                                <a class="show-all"><?php _e('View All'); ?></a>
    381381                                                                <a class="hide-all"><?php _e('Hide All'); ?></a>
    382382                                                        </p>
    383                                                        
     383
    384384                                                        <div id="existing-categories" class="list-wrap">
    385385                                                                <div class="list-container">
Note: See TracChangeset for help on using the changeset viewer.