WordPress 3.4
[autoinstalls/wordpress.git] / wp-admin / nav-menus.php
index 90a1e873a9f43df5f77e1fd16cc33165fca931f8..6b4b032389d13fc16f39e59eaa9f73dee6db7ef4 100644 (file)
@@ -35,6 +35,9 @@ wp_enqueue_script( 'common' );
 wp_enqueue_script( 'wp-lists' );
 wp_enqueue_script( 'postbox' );
 
+if ( wp_is_mobile() )
+       wp_enqueue_script( 'jquery-touch-punch' );
+
 // Container for any messages displayed to the user
 $messages = array();
 
@@ -117,7 +120,6 @@ switch ( $action ) {
                                                wp_update_post($next_item_data);
                                        }
 
-
                                // the item is last but still has a parent, so bubble up
                                } elseif (
                                        ! empty( $menu_item_data['menu_item_parent'] ) &&
@@ -152,7 +154,6 @@ switch ( $action ) {
                                        }
                                }
 
-
                                // if this menu item is not first
                                if ( ! empty( $dbids_to_orders[$menu_item_id] ) && ! empty( $orders_to_dbids[$dbids_to_orders[$menu_item_id] - 1] ) ) {
 
@@ -228,7 +229,6 @@ switch ( $action ) {
 
                check_admin_referer( 'delete-menu_item_' . $menu_item_id );
 
-
                if ( is_nav_menu_item( $menu_item_id ) && wp_delete_post( $menu_item_id, true ) )
                        $messages[] = '<div id="message" class="updated"><p>' . __('The menu item has been successfully deleted.') . '</p></div>';
                break;
@@ -430,7 +430,7 @@ $_wp_nav_menu_max_depth = 0;
 
 // Calling wp_get_nav_menu_to_edit generates $_wp_nav_menu_max_depth
 if ( is_nav_menu( $nav_menu_selected_id ) )
-       $edit_markup = wp_get_nav_menu_to_edit( $nav_menu_selected_id  );
+       $edit_markup = wp_get_nav_menu_to_edit( $nav_menu_selected_id );
 
 function wp_nav_menu_max_depth($classes) {
        global $_wp_nav_menu_max_depth;
@@ -545,7 +545,7 @@ require_once( './admin-header.php' );
                                                        <div class="major-publishing-actions">
                                                                <label class="menu-name-label howto open-label" for="menu-name">
                                                                        <span><?php _e('Menu Name'); ?></span>
-                                                                       <input name="menu-name" id="menu-name" type="text" class="menu-name regular-text menu-item-textbox input-with-default-title" title="<?php esc_attr_e('Enter menu name here'); ?>" value="<?php echo esc_attr( $nav_menu_selected_title  ); ?>" />
+                                                                       <input name="menu-name" id="menu-name" type="text" class="menu-name regular-text menu-item-textbox input-with-default-title" title="<?php esc_attr_e('Enter menu name here'); ?>" value="<?php echo esc_attr( $nav_menu_selected_title ); ?>" />
                                                                </label>
                                                                <?php if ( !empty( $nav_menu_selected_id ) ) :
                                                                        if ( ! isset( $auto_add ) ) {
@@ -615,5 +615,4 @@ require_once( './admin-header.php' );
        </div><!-- /#nav-menus-frame -->
 </div><!-- /.wrap-->
 
-
 <?php include( './admin-footer.php' ); ?>