Make WordPress Core

Ticket #35578: 35578.patch

File 35578.patch, 2.6 KB (added by Cheffheid, 9 years ago)
  • src/wp-admin/css/nav-menus.css

     
    651651        box-shadow: 0 1px 1px rgba(0,0,0,0.04);
    652652}
    653653
    654 .menu-item-settings .field-move a {
     654.menu-item-settings .field-move {
     655        margin: 2px 0 5px;
     656}
     657
     658.menu-item-settings .field-move legend {
     659        color: #666;
     660        float: left;
     661        font-style: italic;
     662}
     663
     664.menu-item-settings .field-move .button-link {
     665        color: #0073aa;
    655666        display: none;
     667        font-style: italic;
    656668        margin: 0 2px;
     669        text-decoration: underline;
    657670}
    658671
     672.menu-item-settings .field-move .button-link:hover,
     673.menu-item-settings .field-move .button-link:active {
     674        color: #00a0d2;
     675}
     676
     677.menu-item-settings .field-move .button-link:focus {
     678        color: #124964;
     679}
     680
    659681.menu-item-edit-active .menu-item-settings {
    660682        display: block;
    661683}
  • src/wp-admin/includes/class-walker-nav-menu-edit.php

     
    197197                                        </label>
    198198                                </p>
    199199
    200                                 <p class="field-move hide-if-no-js description description-wide">
    201                                         <label>
    202                                                 <span><?php _e( 'Move' ); ?></span>
    203                                                 <a href="#" class="menus-move menus-move-up" data-dir="up"><?php _e( 'Up one' ); ?></a>
    204                                                 <a href="#" class="menus-move menus-move-down" data-dir="down"><?php _e( 'Down one' ); ?></a>
    205                                                 <a href="#" class="menus-move menus-move-left" data-dir="left"></a>
    206                                                 <a href="#" class="menus-move menus-move-right" data-dir="right"></a>
    207                                                 <a href="#" class="menus-move menus-move-top" data-dir="top"><?php _e( 'To the top' ); ?></a>
    208                                         </label>
    209                                 </p>
     200                                <fieldset class="field-move hide-if-no-js description description-wide">
     201                                        <legend><?php _e( 'Move' ); ?> <span class="screen-reader-text"><?php _e('this menu item'); ?></span></legend>
     202                                        <button class="button-link menus-move menus-move-up" data-dir="up"><?php _e( 'Up one' ); ?></button>
     203                                        <button class="button-link menus-move menus-move-down" data-dir="down"><?php _e( 'Down one' ); ?></button>
     204                                        <button class="button-link menus-move menus-move-left" data-dir="left"></button>
     205                                        <button class="button-link menus-move menus-move-right" data-dir="right"></button>
     206                                        <button class="button-link menus-move menus-move-top" data-dir="top"><?php _e( 'To the top' ); ?></button>
     207                                </fieldset>
    210208
    211209                                <div class="menu-item-actions description-wide submitbox">
    212210                                        <?php if ( 'custom' != $item->type && $original_title !== false ) : ?>