Make WordPress Core

Ticket #34867: 34867.diff

File 34867.diff, 1.8 KB (added by garusky, 8 years ago)
  • src/wp-admin/includes/class-wp-terms-list-table.php

     
    430430                $actions = array();
    431431                if ( current_user_can( $tax->cap->edit_terms ) ) {
    432432                        $actions['edit'] = '<a href="' . esc_url( $edit_link ) . '">' . __( 'Edit' ) . '</a>';
    433                         $actions['inline hide-if-no-js'] = '<a href="#" class="editinline">' . __( 'Quick&nbsp;Edit' ) . '</a>';
     433                        $actions['inline hide-if-no-js'] = '<a href="#" class="editinline button-if-js">' . __( 'Quick&nbsp;Edit' ) . '</a>';
    434434                }
    435435                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&amp;taxonomy=$taxonomy&amp;tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) . "'>" . __( 'Delete' ) . "</a>";
     436                        $actions['delete'] = "<a class='delete-tag button-if-js' href='" . wp_nonce_url( "edit-tags.php?action=delete&amp;taxonomy=$taxonomy&amp;tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) . "'>" . __( 'Delete' ) . "</a>";
    437437                if ( $tax->public )
    438438                        $actions['view'] = '<a href="' . get_term_link( $tag ) . '">' . __( 'View' ) . '</a>';
    439439
  • src/wp-admin/js/common.js

     
    428428        // Init screen meta
    429429        screenMeta.init();
    430430
     431        // Add role=button to elements with a certain class
     432        $( '.button-if-js' ).attr( 'role', 'button' );
     433
    431434        // check all checkboxes
    432435        $('tbody').children().children('.check-column').find(':checkbox').click( function(e) {
    433436                if ( 'undefined' == e.shiftKey ) { return true; }