Ticket #46367: 46367.5.diff
File 46367.5.diff, 2.7 KB (added by , 5 years ago) |
---|
-
src/wp-admin/css/common.css
889 889 #media-items a.delete, 890 890 #media-items a.delete-permanently, 891 891 #nav-menu-footer .menu-delete, 892 #nav-menu-footer .menu-cancel, 892 893 #delete-link a.delete { 893 894 color: #a00; 894 895 } … … 906 907 #media-items a.delete:hover, 907 908 #media-items a.delete-permanently:hover, 908 909 #nav-menu-footer .menu-delete:hover, 910 #nav-menu-footer .menu-cancel:hover, 909 911 #delete-link a.delete:hover { 910 912 color: #dc3232; 911 913 border: none; -
src/wp-admin/nav-menus.php
1003 1003 </div><!-- /#post-body --> 1004 1004 <div id="nav-menu-footer"> 1005 1005 <div class="major-publishing-actions wp-clearfix"> 1006 <?php if ( 0 != $menu_count && ! $add_new_screen ) : ?> 1007 <span class="delete-action"> 1008 <a class="submitdelete deletion menu-delete" href=" 1009 <?php 1010 echo esc_url( 1011 wp_nonce_url( 1012 add_query_arg( 1013 array( 1014 'action' => 'delete', 1015 'menu' => $nav_menu_selected_id, 1006 <?php if ( 0 !== $menu_count ) : ?> 1007 <?php if ( $add_new_screen ) : ?> 1008 <span class="cancel-action"> 1009 <a class="submitcancel cancellation menu-cancel" href="<?php echo esc_url( admin_url( 'nav-menus.php' ) ); ?>"><?php _e( 'Cancel' ); ?></a> 1010 </span><!-- END .cancel-action --> 1011 <?php else : ?> 1012 <span class="delete-action"> 1013 <a class="submitdelete deletion menu-delete" href=" 1014 <?php 1015 echo esc_url( 1016 wp_nonce_url( 1017 add_query_arg( 1018 array( 1019 'action' => 'delete', 1020 'menu' => $nav_menu_selected_id, 1021 ), 1022 admin_url( 'nav-menus.php' ) 1016 1023 ), 1017 admin_url( 'nav-menus.php' ) 1018 ), 1019 'delete-nav_menu-' . $nav_menu_selected_id 1020 ) 1021 ); 1022 ?> 1023 "><?php _e( 'Delete Menu' ); ?></a> 1024 </span><!-- END .delete-action --> 1024 'delete-nav_menu-' . $nav_menu_selected_id 1025 ) 1026 ); 1027 ?> 1028 "><?php _e( 'Delete Menu' ); ?></a> 1029 </span><!-- END .delete-action --> 1030 <?php endif; ?> 1025 1031 <?php endif; ?> 1026 1032 <div class="publishing-action"> 1027 1033 <?php submit_button( empty( $nav_menu_selected_id ) ? __( 'Create Menu' ) : __( 'Save Menu' ), 'primary large menu-save', 'save_menu', false, array( 'id' => 'save_menu_footer' ) ); ?>