'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,
echo '<label class="screen-reader-text" for="cat_id">' . __( 'Filter by category' ) . '</label>';
wp_dropdown_categories( $dropdown_options );
- submit_button( __( 'Filter' ), 'button', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
+ submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
?>
</div>
<?php
}
/**
- * Handles the checkbox column ouput.
+ * Handles the checkbox column output.
*
* @since 4.3.0
* @access public
}
/**
- * Handles the link name column ouput.
+ * Handles the link name column output.
*
* @since 4.3.0
* @access public
*/
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 “%s”' ), $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 “%s”' ), $link->link_name ) ),
+ $link->link_name
+ );
}
/**
- * Handles the link URL column ouput.
+ * Handles the link URL column output.
*
* @since 4.3.0
* @access public
*/
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>";
}
/**
}
/**
- * Handles the link relation column ouput.
+ * Handles the link relation column output.
*
* @since 4.3.0
* @access public
}
/**
- * Handles the link visibility column ouput.
+ * Handles the link visibility column output.
*
* @since 4.3.0
* @access public
}
/**
- * Handles the link rating column ouput.
+ * Handles the link rating column output.
*
* @since 4.3.0
* @access public