diff --git a/src/wp-admin/includes/class-wp-terms-list-table.php b/src/wp-admin/includes/class-wp-terms-list-table.php
index 4bce2e60b2..7da91a23e1 100644
--- a/src/wp-admin/includes/class-wp-terms-list-table.php
+++ b/src/wp-admin/includes/class-wp-terms-list-table.php
@@ -375,7 +375,13 @@ class WP_Terms_List_Table extends WP_List_Table {
get_edit_term_link( $tag->term_id, $taxonomy, $this->screen->post_type )
);
- $out = '' . $name . '
';
+ $out = sprintf(
+ '%s
',
+ esc_url( $edit_link ),
+ /* translators: %s: taxonomy term name */
+ esc_attr( sprintf( __( '“%s” (Edit)' ), $tag->name ) ),
+ $name
+ );
$out .= '
';
$out .= '
' . $qe_data->name . '
';
@@ -429,13 +435,38 @@ class WP_Terms_List_Table extends WP_List_Table {
$actions = array();
if ( current_user_can( $tax->cap->edit_terms ) ) {
- $actions['edit'] = '
' . __( 'Edit' ) . '';
- $actions['inline hide-if-no-js'] = '
' . __( 'Quick Edit' ) . '';
+ $actions['edit'] = sprintf(
+ '
%s',
+ esc_url( $edit_link ),
+ /* translators: %s: taxonomy term name */
+ esc_attr( sprintf( __( 'Edit “%s”' ), $tag->name ) ),
+ __( 'Edit' )
+ );
+ $actions['inline hide-if-no-js'] = sprintf(
+ '
%s',
+ /* translators: %s: taxonomy term name */
+ esc_attr( sprintf( __( 'Quick edit “%s” inline' ), $tag->name ) ),
+ __( 'Quick Edit' )
+ );
+ }
+ if ( current_user_can( $tax->cap->delete_terms ) && $tag->term_id != $default_term ) {
+ $actions['delete'] = sprintf(
+ '
%s',
+ wp_nonce_url( "edit-tags.php?action=delete&taxonomy=$taxonomy&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ),
+ /* translators: %s: taxonomy term name */
+ esc_attr( sprintf( __( 'Delete “%s”' ), $tag->name ) ),
+ __( 'Delete' )
+ );
+ }
+ if ( $tax->public ) {
+ $actions['view'] = sprintf(
+ '
%s',
+ get_term_link( $tag ),
+ /* translators: %s: taxonomy term name */
+ esc_attr( sprintf( __( 'View “%s” archive' ), $tag->name ) ),
+ __( 'View' )
+ );
}
- if ( current_user_can( $tax->cap->delete_terms ) && $tag->term_id != $default_term )
- $actions['delete'] = "
term_id ) . "'>" . __( 'Delete' ) . "";
- if ( $tax->public )
- $actions['view'] = '
' . __( 'View' ) . '';
/**
* Filter the action links displayed for each term in the Tags list table.