Ticket #34867: 34867.2.diff
File 34867.2.diff, 2.1 KB (added by , 9 years ago) |
---|
-
src/wp-admin/includes/class-wp-terms-list-table.php
430 430 $actions = array(); 431 431 if ( current_user_can( $tax->cap->edit_terms ) ) { 432 432 $actions['edit'] = '<a href="' . esc_url( $edit_link ) . '">' . __( 'Edit' ) . '</a>'; 433 $actions['inline hide-if-no-js'] = '<a href="#" class="editinline ">' . __( 'Quick Edit' ) . '</a>';433 $actions['inline hide-if-no-js'] = '<a href="#" class="editinline aria-button-if-js">' . __( 'Quick Edit' ) . '</a>'; 434 434 } 435 435 if ( current_user_can( $tax->cap->delete_terms ) && $tag->term_id != $default_term ) 436 $actions['delete'] = "<a class='delete-tag ' href='" . wp_nonce_url( "edit-tags.php?action=delete&taxonomy=$taxonomy&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) . "'>" . __( 'Delete' ) . "</a>";436 $actions['delete'] = "<a class='delete-tag aria-button-if-js' href='" . wp_nonce_url( "edit-tags.php?action=delete&taxonomy=$taxonomy&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) . "'>" . __( 'Delete' ) . "</a>"; 437 437 if ( $tax->public ) 438 438 $actions['view'] = '<a href="' . get_term_link( $tag ) . '">' . __( 'View' ) . '</a>'; 439 439 -
src/wp-admin/js/common.js
897 897 } 898 898 }; 899 899 900 // Add an ARIA role `button` to elements that act like UI controls when JavaScript is on. 901 function aria_button_if_js() { 902 $( '.aria-button-if-js' ).attr( 'role', 'button' ); 903 } 904 905 $( document ).ajaxComplete( function() { 906 aria_button_if_js(); 907 }); 908 900 909 window.wpResponsive.init(); 901 910 setPinMenu(); 902 911 currentMenuItemHasPopup(); 903 912 makeNoticesDismissible(); 913 aria_button_if_js(); 904 914 905 915 $document.on( 'wp-pin-menu wp-window-resized.pin-menu postboxes-columnchange.pin-menu postbox-toggled.pin-menu wp-collapse-menu.pin-menu wp-scroll-start.pin-menu', setPinMenu ); 906 916 });