Changeset 47770
- Timestamp:
- 05/06/2020 07:33:45 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/nav-menus.php
r47605 r47770 888 888 <form id="update-nav-menu" method="post" enctype="multipart/form-data"> 889 889 <?php 890 890 $new_screen_class = ''; 891 891 if ( $add_new_screen ) { 892 892 $new_screen_class = 'blank-slate'; … … 926 926 <div id="post-body-content" class="wp-clearfix"> 927 927 <?php if ( ! $add_new_screen ) : ?> 928 928 929 <?php 929 930 $hide_style = ''; … … 938 939 } 939 940 ?> 940 <div class="drag-instructions post-body-plain" <?php echo $hide_style; ?>> 941 <p><?php echo $starter_copy; ?></p> 942 </div> 941 <div class="drag-instructions post-body-plain" <?php echo $hide_style; ?>> 942 <p><?php echo $starter_copy; ?></p> 943 </div> 944 943 945 <?php 944 946 if ( isset( $edit_markup ) && ! is_wp_error( $edit_markup ) ) { … … 946 948 } else { 947 949 ?> 948 <ul class="menu" id="menu-to-edit"></ul>950 <ul class="menu" id="menu-to-edit"></ul> 949 951 <?php } ?> 952 950 953 <?php endif; ?> 954 951 955 <?php if ( $add_new_screen ) : ?> 952 956 <p class="post-body-plain" id="menu-name-desc"><?php _e( 'Give your menu a name, then click Create Menu.' ); ?></p> … … 954 958 <input type="hidden" name="use-location" value="<?php echo esc_attr( $_GET['use-location'] ); ?>" /> 955 959 <?php endif; ?> 960 956 961 <?php 957 958 959 962 endif; 963 964 $no_menus_style = ''; 960 965 if ( $one_theme_location_no_menus ) { 961 966 $no_menus_style = 'style="display: none;"'; … … 1015 1020 <div id="nav-menu-footer"> 1016 1021 <div class="major-publishing-actions wp-clearfix"> 1017 <?php if ( 0 != $menu_count && ! $add_new_screen ) : ?> 1018 <span class="delete-action"> 1019 <a class="submitdelete deletion menu-delete" href=" 1020 <?php 1021 echo esc_url( 1022 wp_nonce_url( 1023 add_query_arg( 1024 array( 1025 'action' => 'delete', 1026 'menu' => $nav_menu_selected_id, 1022 <?php if ( $menu_count > 0 ) : ?> 1023 1024 <?php if ( $add_new_screen ) : ?> 1025 <span class="cancel-action"> 1026 <a class="submitcancel cancellation menu-cancel" href="<?php echo esc_url( admin_url( 'nav-menus.php' ) ); ?>"><?php _e( 'Cancel' ); ?></a> 1027 </span><!-- END .cancel-action --> 1028 <?php else : ?> 1029 <span class="delete-action"> 1030 <a class="submitdelete deletion menu-delete" href=" 1031 <?php 1032 echo esc_url( 1033 wp_nonce_url( 1034 add_query_arg( 1035 array( 1036 'action' => 'delete', 1037 'menu' => $nav_menu_selected_id, 1038 ), 1039 admin_url( 'nav-menus.php' ) 1027 1040 ), 1028 admin_url( 'nav-menus.php' )1029 ) ,1030 'delete-nav_menu-' . $nav_menu_selected_id1031 )1032 );1033 ?>1034 "><?php _e( 'Delete Menu' ); ?></a>1035 </span><!-- END .delete-action --> 1041 'delete-nav_menu-' . $nav_menu_selected_id 1042 ) 1043 ); 1044 ?> 1045 "><?php _e( 'Delete Menu' ); ?></a> 1046 </span><!-- END .delete-action --> 1047 <?php endif; ?> 1048 1036 1049 <?php endif; ?> 1037 1050 <div class="publishing-action">
Note: See TracChangeset
for help on using the changeset viewer.