Add title attribute to edit category link. see #6082
git-svn-id: http://svn.automattic.com/wordpress/trunk@7364 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5264e639a9
commit
bec1247231
|
@ -41,10 +41,11 @@ function _cat_row( $category, $level, $name_override = false ) {
|
|||
$category = get_category( $category );
|
||||
|
||||
$pad = str_repeat( '— ', $level );
|
||||
$name = ( $name_override ? $name_override : $pad . ' ' . $category->name );
|
||||
if ( current_user_can( 'manage_categories' ) ) {
|
||||
$edit = "<a class='row-title' href='categories.php?action=edit&cat_ID=$category->term_id'>". ( $name_override ? $name_override : $pad . ' ' . $category->name ) ."</a>";
|
||||
$edit = "<a class='row-title' href='categories.php?action=edit&cat_ID=$category->term_id' title='" . attribute_escape(sprintf(__('Edit "%s"'), $category->name)) . "'>$name</a>";
|
||||
} else {
|
||||
$edit = ( $name_override ? $name_override : $pad . ' ' . $category->name );
|
||||
$edit = $name;
|
||||
}
|
||||
|
||||
$class = " class='alternate'" == $class ? '' : " class='alternate'";
|
||||
|
|
Loading…
Reference in New Issue