Make WordPress Core


Ignore:
Timestamp:
07/12/2015 12:07:15 PM (9 years ago)
Author:
ocean90
Message:

Nav menus: Add an ID attribute to the menu select box to link it with the label.

see #31816.
fixes #32699.

File:
1 edited

Legend:

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

    r33161 r33174  
    655655            <form method="get" action="<?php echo admin_url( 'nav-menus.php' ); ?>">
    656656            <input type="hidden" name="action" value="edit" />
    657             <label for="menu" class="selected-menu"><?php _e( 'Select a menu to edit:' ); ?></label>
    658             <select name="menu">
     657            <label for="select-menu-to-edit" class="selected-menu"><?php _e( 'Select a menu to edit:' ); ?></label>
     658            <select name="menu" id="select-menu-to-edit">
    659659                <?php if ( $add_new_screen ) : ?>
    660660                    <option value="0" selected="selected"><?php _e( '&mdash; Select &mdash;' ); ?></option>
Note: See TracChangeset for help on using the changeset viewer.