]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/class-wp-links-list-table.php
WordPress 4.5
[autoinstalls/wordpress.git] / wp-admin / includes / class-wp-links-list-table.php
index 4af3a5b5f251a73bdb89eb8a86f114e199e05ebd..e4560e480f65873d5e3aacb0aed0a24705301574 100644 (file)
@@ -103,7 +103,7 @@ class WP_Links_List_Table extends WP_List_Table {
                                'selected' => $cat_id,
                                'name' => 'cat_id',
                                'taxonomy' => 'link_category',
-                               'show_option_all' => __( 'All categories' ),
+                               'show_option_all' => get_taxonomy( 'link_category' )->labels->all_items,
                                'hide_empty' => true,
                                'hierarchical' => 1,
                                'show_count' => 0,
@@ -160,7 +160,7 @@ class WP_Links_List_Table extends WP_List_Table {
        }
 
        /**
-        * Handles the checkbox column ouput.
+        * Handles the checkbox column output.
         *
         * @since 4.3.0
         * @access public
@@ -175,7 +175,7 @@ class WP_Links_List_Table extends WP_List_Table {
        }
 
        /**
-        * Handles the link name column ouput.
+        * Handles the link name column output.
         *
         * @since 4.3.0
         * @access public
@@ -184,15 +184,16 @@ class WP_Links_List_Table extends WP_List_Table {
         */
        public function column_name( $link ) {
                $edit_link = get_edit_bookmark_link( $link );
-               ?>
-               <strong><a class="row-title" href="<?php echo $edit_link ?>" title="<?php
-                       echo esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $link->link_name ) );
-               ?>"><?php echo $link->link_name ?></a></strong><br />
-               <?php
+               printf( '<strong><a class="row-title" href="%s" aria-label="%s">%s</a></strong>',
+                       $edit_link,
+                       /* translators: %s: link name */
+                       esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $link->link_name ) ),
+                       $link->link_name
+               );
        }
 
        /**
-        * Handles the link URL column ouput.
+        * Handles the link URL column output.
         *
         * @since 4.3.0
         * @access public
@@ -201,7 +202,7 @@ class WP_Links_List_Table extends WP_List_Table {
         */
        public function column_url( $link ) {
                $short_url = url_shorten( $link->link_url );
-               echo "<a href='$link->link_url' title='". esc_attr( sprintf( __( 'Visit %s' ), $link->link_name ) )."'>$short_url</a>";
+               echo "<a href='$link->link_url'>$short_url</a>";
        }
 
        /**
@@ -233,7 +234,7 @@ class WP_Links_List_Table extends WP_List_Table {
        }
 
        /**
-        * Handles the link relation column ouput.
+        * Handles the link relation column output.
         *
         * @since 4.3.0
         * @access public
@@ -245,7 +246,7 @@ class WP_Links_List_Table extends WP_List_Table {
        }
 
        /**
-        * Handles the link visibility column ouput.
+        * Handles the link visibility column output.
         *
         * @since 4.3.0
         * @access public
@@ -261,7 +262,7 @@ class WP_Links_List_Table extends WP_List_Table {
        }
 
        /**
-        * Handles the link rating column ouput.
+        * Handles the link rating column output.
         *
         * @since 4.3.0
         * @access public