X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/03f2fa83c13c1b532284205fa7efcab9b8b2c41f..refs/tags/wordpress-4.6.1:/wp-admin/includes/class-wp-terms-list-table.php
diff --git a/wp-admin/includes/class-wp-terms-list-table.php b/wp-admin/includes/class-wp-terms-list-table.php
index 765b1a36..e765794a 100644
--- a/wp-admin/includes/class-wp-terms-list-table.php
+++ b/wp-admin/includes/class-wp-terms-list-table.php
@@ -53,7 +53,7 @@ class WP_Terms_List_Table extends WP_List_Table {
$taxonomy = 'post_tag';
if ( ! taxonomy_exists( $taxonomy ) )
- wp_die( __( 'Invalid taxonomy' ) );
+ wp_die( __( 'Invalid taxonomy.' ) );
$tax = get_taxonomy( $taxonomy );
@@ -79,7 +79,7 @@ class WP_Terms_List_Table extends WP_List_Table {
if ( 'post_tag' === $this->screen->taxonomy ) {
/**
- * Filter the number of terms displayed per page for the Tags list table.
+ * Filters the number of terms displayed per page for the Tags list table.
*
* @since 2.8.0
*
@@ -88,7 +88,7 @@ class WP_Terms_List_Table extends WP_List_Table {
$tags_per_page = apply_filters( 'edit_tags_per_page', $tags_per_page );
/**
- * Filter the number of terms displayed per page for the Tags list table.
+ * Filters the number of terms displayed per page for the Tags list table.
*
* @since 2.7.0
* @deprecated 2.8.0 Use edit_tags_per_page instead.
@@ -98,7 +98,7 @@ class WP_Terms_List_Table extends WP_List_Table {
$tags_per_page = apply_filters( 'tagsperpage', $tags_per_page );
} elseif ( 'category' === $this->screen->taxonomy ) {
/**
- * Filter the number of terms displayed per page for the Categories list table.
+ * Filters the number of terms displayed per page for the Categories list table.
*
* @since 2.8.0
*
@@ -351,7 +351,7 @@ class WP_Terms_List_Table extends WP_List_Table {
$pad = str_repeat( '— ', max( 0, $this->level ) );
/**
- * Filter display of the term name in the terms list table.
+ * Filters display of the term name in the terms list table.
*
* The default output may include padding due to the term's
* current level in the term hierarchy.
@@ -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 .= '