Ticket #9777: 9777.10.diff
File 9777.10.diff, 4.1 KB (added by , 8 years ago) |
---|
-
src/wp-admin/css/common.css
874 874 .submitbox .submitdelete, 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 } 880 881 … … 890 891 .submitbox .submitdelete:hover, 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: #f00; 895 897 border: none; 896 898 } … … 915 917 line-height: 28px; 916 918 } 917 919 920 #delete-link { 921 line-height: 28px; 922 vertical-align: middle; 923 text-align: left; 924 margin-left: 8px; 925 } 926 927 #delete-link a { 928 text-decoration: none; 929 } 930 918 931 #publishing-action { 919 932 text-align: right; 920 933 float: right; -
src/wp-admin/css/edit.css
1113 1113 text-decoration: underline; 1114 1114 } 1115 1115 1116 #edittag { 1117 max-width: 800px; 1118 } 1119 1120 .edit-tag-actions { 1121 margin-top: 20px; 1122 overflow: hidden; 1123 padding: 10px; 1124 margin-right: 10px; 1125 } 1126 1116 1127 /* Comments */ 1117 1128 1118 1129 .comment-php .wp-editor-area { … … 1369 1380 } 1370 1381 1371 1382 @media screen and ( max-width: 782px ) { 1383 .wp-core-ui .edit-tag-actions .button-primary { 1384 margin-bottom: 0; 1385 } 1386 1372 1387 #post-body-content { 1373 1388 min-width: 0; 1374 1389 } -
src/wp-admin/edit-tag-form.php
254 254 * @param string $taxonomy Current taxonomy slug. 255 255 */ 256 256 do_action( "{$taxonomy}_edit_form", $tag, $taxonomy ); 257 ?> 257 258 258 submit_button( __('Update') ); 259 ?> 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> 262 273 -
src/wp-admin/edit-tags.php
65 65 $referer = wp_unslash( $_SERVER['REQUEST_URI'] ); 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 71 70 case 'add-tag': … … 107 106 108 107 $location = add_query_arg( 'message', 2, $referer ); 109 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 ); 111 110 112 break; 111 113 112 114 case 'bulk-delete': -
src/wp-admin/js/tags.js
28 28 return false; 29 29 }); 30 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 } 40 }); 41 31 42 $('#submit').click(function(){ 32 43 var form = $(this).parents('form'); 33 44 -
src/wp-admin/term.php
62 62 'heading_pagination' => $tax->labels->items_list_navigation, 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' ); 68 68 include( ABSPATH . 'wp-admin/admin-footer.php' );