Make WordPress Core

Changeset 31320


Ignore:
Timestamp:
02/01/2015 05:28:29 AM (12 years ago)
Author:
SergeyBiryukov
Message:

Menus: Don't display "Move" text without direction if there is only one menu item.

props kucrut for initial patch.
fixes #30765.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/nav-menu.js

    r29672 r31320  
    430430                                        hasSameDepthSibling = menuItem.nextAll( '.menu-item-depth-' + depth ).length;
    431431
     432                                menuItem.find( '.field-move' ).toggle( totalMenuItems > 1 );
     433
    432434                                // Where can they move this menu item?
    433435                                if ( 0 !== position ) {
     
    11881190                                                ins.removeClass( 'menu-instructions-inactive' );
    11891191                                        }
     1192                                        api.refreshAdvancedAccessibility();
    11901193                                });
    11911194                },
Note: See TracChangeset for help on using the changeset viewer.