Changeset 40655
- Timestamp:
- 05/12/2017 07:25:43 PM (8 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/common.css
r40633 r40655 875 875 #media-items a.delete, 876 876 #media-items a.delete-permanently, 877 #nav-menu-footer .menu-delete { 877 #nav-menu-footer .menu-delete, 878 #delete-link a.delete { 878 879 color: #a00; 879 880 } … … 891 892 #media-items a.delete:hover, 892 893 #media-items a.delete-permanently:hover, 893 #nav-menu-footer .menu-delete:hover { 894 #nav-menu-footer .menu-delete:hover, 895 #delete-link a.delete:hover { 894 896 color: #dc3232; 895 897 border: none; … … 910 912 float: left; 911 913 line-height: 28px; 914 } 915 916 #delete-link { 917 line-height: 28px; 918 vertical-align: middle; 919 text-align: left; 920 margin-left: 8px; 921 } 922 923 #delete-link a { 924 text-decoration: none; 912 925 } 913 926 -
trunk/src/wp-admin/css/edit.css
r40052 r40655 1091 1091 .ac_match { 1092 1092 text-decoration: underline; 1093 } 1094 1095 #edittag { 1096 max-width: 800px; 1097 } 1098 1099 .edit-tag-actions { 1100 margin-top: 20px; 1101 overflow: hidden; 1102 padding: 10px; 1103 margin-right: 10px; 1093 1104 } 1094 1105 … … 1349 1360 1350 1361 @media screen and ( max-width: 782px ) { 1362 .wp-core-ui .edit-tag-actions .button-primary { 1363 margin-bottom: 0; 1364 } 1365 1351 1366 #post-body-content { 1352 1367 min-width: 0; -
trunk/src/wp-admin/edit-tag-form.php
r40146 r40655 255 255 */ 256 256 do_action( "{$taxonomy}_edit_form", $tag, $taxonomy ); 257 258 submit_button( __('Update') );259 257 ?> 258 259 <div class="edit-tag-actions"> 260 261 <?php submit_button( __( 'Update' ), 'primary', null, false ); ?> 262 263 <?php if ( current_user_can( 'delete_term', $tag->term_id ) ) : ?> 264 <span id="delete-link"> 265 <a class="delete" href="<?php echo admin_url( wp_nonce_url( "edit-tags.php?action=delete&taxonomy=$taxonomy&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) ) ?>"'><?php _e( 'Delete' ); ?></a> 266 </span> 267 <?php endif; ?> 268 269 </div> 270 260 271 </form> 261 272 </div> -
trunk/src/wp-admin/edit-tags.php
r40146 r40655 66 66 } 67 67 $referer = remove_query_arg( array( '_wp_http_referer', '_wpnonce', 'error', 'message', 'paged' ), $referer ); 68 69 68 switch ( $wp_list_table->current_action() ) { 70 69 … … 107 106 108 107 $location = add_query_arg( 'message', 2, $referer ); 108 109 // When deleting a term, prevent the action from redirecting back to a term that no longer exists. 110 $location = remove_query_arg( array( 'tag_ID', 'action' ), $location ); 109 111 110 112 break; -
trunk/src/wp-admin/js/tags.js
r31750 r40655 27 27 } 28 28 return false; 29 }); 30 31 $( '#edittag' ).on( 'click', '.delete', function( e ) { 32 if ( 'undefined' === typeof showNotice ) { 33 return true; 34 } 35 36 var response = showNotice.warn(); 37 if ( ! response ) { 38 e.preventDefault(); 39 } 29 40 }); 30 41 -
trunk/src/wp-admin/term.php
r38698 r40655 63 63 'heading_list' => $tax->labels->items_list, 64 64 ) ); 65 65 wp_enqueue_script( 'admin-tags' ); 66 66 require_once( ABSPATH . 'wp-admin/admin-header.php' ); 67 67 include( ABSPATH . 'wp-admin/edit-tag-form.php' );
Note: See TracChangeset
for help on using the changeset viewer.