Ticket #35187: 35187.patch
File 35187.patch, 2.7 KB (added by , 8 years ago) |
---|
-
src/wp-admin/includes/class-wp-terms-list-table.php
375 375 get_edit_term_link( $tag->term_id, $taxonomy, $this->screen->post_type ) 376 376 ); 377 377 378 $out = '<strong><a class="row-title" href="' . esc_url( $edit_link ) . '" title="' . esc_attr( sprintf( __( 'Edit “%s”' ), $name ) ) . '">' . $name . '</a></strong><br />'; 378 $out = '<strong><a class="row-title" href="' . esc_url( $edit_link ) . '" aria-label="' . 379 esc_attr( sprintf( __( 'Edit “%s”' ), $tag->name ) ) . '">' . $name . '</a></strong><br />'; 379 380 380 381 $out .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">'; 381 382 $out .= '<div class="name">' . $qe_data->name . '</div>'; … … 429 430 430 431 $actions = array(); 431 432 if ( current_user_can( $tax->cap->edit_terms ) ) { 432 $actions['edit'] = '<a href="' . esc_url( $edit_link ) . '">' . __( 'Edit' ) . '</a>'; 433 $actions['inline hide-if-no-js'] = '<a href="#" class="editinline aria-button-if-js">' . __( 'Quick Edit' ) . '</a>'; 433 $actions['edit'] = '<a href="' . esc_url( $edit_link ) . '" aria-label="' . 434 esc_attr( sprintf( __( 'Edit “%s”' ), $tag->name ) ) . '">' . __( 'Edit' ) . '</a>'; 435 $actions['inline hide-if-no-js'] = '<a href="#" class="editinline aria-button-if-js" aria-label="' . 436 esc_attr( sprintf( __( 'Quick edit “%s” inline' ), $tag->name ) ) . '">' . __( 'Quick Edit' ) . '</a>'; 434 437 } 435 if ( current_user_can( $tax->cap->delete_terms ) && $tag->term_id != $default_term ) 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 if ( $tax->public ) 438 $actions['view'] = '<a href="' . get_term_link( $tag ) . '">' . __( 'View' ) . '</a>'; 438 if ( current_user_can( $tax->cap->delete_terms ) && $tag->term_id != $default_term ) { 439 $actions['delete'] = "<a class='delete-tag aria-button-if-js' href='" . 440 wp_nonce_url( "edit-tags.php?action=delete&taxonomy=$taxonomy&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) . 441 "' aria-label='" . esc_attr( sprintf( __( 'Delete “%s”' ), $tag->name ) ) . "'>" . __( 'Delete' ) . "</a>"; 442 } 443 if ( $tax->public ) { 444 $actions['view'] = '<a href="' . get_term_link( $tag ) . '" aria-label="' . 445 esc_attr( sprintf( __( 'View “%s”' ), $tag->name ) ) . '">' . __( 'View' ) . '</a>'; 446 } 439 447 440 448 /** 441 449 * Filter the action links displayed for each term in the Tags list table.