Add title attribute to edit link category link. see #6082

git-svn-id: https://develop.svn.wordpress.org/trunk@7365 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-03-17 23:51:34 +00:00
parent adf2db6cef
commit 0cd12b73dc
1 changed files with 3 additions and 2 deletions

View File

@ -74,11 +74,12 @@ function link_cat_row( $category ) {
if ( is_wp_error( $category ) )
return $category;
$name = ( $name_override ? $name_override : $category->name );
if ( current_user_can( 'manage_categories' ) ) {
$edit = "<a class='row-title' href='link-category.php?action=edit&amp;cat_ID=$category->term_id' class='edit'>". ( $name_override ? $name_override : $category->name ) ."</a>";
$edit = "<a class='row-title' href='link-category.php?action=edit&amp;cat_ID=$category->term_id' title='" . attribute_escape(sprintf(__('Edit "%s"'), $category->name)) . "' class='edit'>$name</a>";
$default_cat_id = (int) get_option( 'default_link_category' );
} else {
$edit = ( $name_override ? $name_override : $category->name );
$edit = $name;
}
$class = " class='alternate'" == $class ? '' : " class='alternate'";