Make WordPress Core

Ticket #31090: 31090.patch

File 31090.patch, 2.5 KB (added by afercia, 10 years ago)
  • src/wp-admin/css/nav-menus.css

     
    101101        margin-top: 1px;
    102102}
    103103
    104 .menu-edit p {
    105         margin: .3em 0 .6em;
    106 }
    107 
    108104.menu-edit #post-body-content h3 {
    109105        margin: 1em 0 10px;
    110106}
     
    216212        margin-top: -2px;
    217213}
    218214
    219 .widefat td.menu-location-menus {
    220         padding-bottom: 5px;
     215.widefat .menu-locations tr + tr td {
     216        padding-top: 0;
    221217}
    222218
     219.widefat .menu-locations td {
     220        vertical-align: middle;
     221}
     222
     223.menu-location-title label {
     224        font-weight: bold;
     225}
     226
    223227.menu-location-menus select {
    224228        float: left;
    225229}
  • src/wp-admin/nav-menus.php

     
    581581                                </tfoot>-->
    582582                                <tbody class="menu-locations">
    583583                                <?php foreach ( $locations as $_location => $_name ) { ?>
    584                                         <tr id="menu-locations-row">
    585                                                 <td class="menu-location-title"><strong><?php echo $_name; ?></strong></td>
     584                                        <tr class="menu-locations-row">
     585                                                <td class="menu-location-title"><label for="locations-<?php echo $_location; ?>"><?php echo $_name; ?></label></td>
    586586                                                <td class="menu-location-menus">
    587587                                                        <select name="menu-locations[<?php echo $_location; ?>]" id="locations-<?php echo $_location; ?>">
    588588                                                                <option value="0"><?php printf( '&mdash; %s &mdash;', esc_html__( 'Select a Menu' ) ); ?></option>
     
    597597                                                                <?php if ( isset( $menu_locations[ $_location ] ) && 0 != $menu_locations[ $_location ] ) : ?>
    598598                                                                <span class="locations-edit-menu-link">
    599599                                                                        <a href="<?php echo esc_url( add_query_arg( array( 'action' => 'edit', 'menu' => $menu_locations[$_location] ), admin_url( 'nav-menus.php' ) ) ); ?>">
    600                                                                                 <?php _ex( 'Edit', 'menu' ); ?>
     600                                                                                <span aria-hidden="true"><?php _ex( 'Edit', 'menu' ); ?></span><span class="screen-reader-text"><?php _e( 'Edit selected menu' ); ?></span>
    601601                                                                        </a>
    602602                                                                </span>
    603603                                                                <?php endif; ?>
     
    606606                                                                                <?php _ex( 'Use new menu', 'menu' ); ?>
    607607                                                                        </a>
    608608                                                                </span>
    609                                                         </div><!-- #locations-row-links -->
     609                                                        </div><!-- .locations-row-links -->
    610610                                                </td><!-- .menu-location-menus -->
    611                                         </tr><!-- #menu-locations-row -->
     611                                        </tr><!-- .menu-locations-row -->
    612612                                <?php } // foreach ?>
    613613                                </tbody>
    614614                        </table>