Remove redundant 'Visit author homepage' title attributes for plugins and themes.

props joedolson.
fixes #26554.

git-svn-id: https://develop.svn.wordpress.org/trunk@28673 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2014-06-05 04:51:55 +00:00
parent c556e74943
commit 7f3b20c45d
3 changed files with 5 additions and 8 deletions
+1 -4
View File
@@ -662,10 +662,7 @@ final class WP_Theme implements ArrayAccess {
break;
case 'Author' :
if ( $this->get('AuthorURI') ) {
static $attr = null;
if ( ! isset( $attr ) )
$attr = esc_attr__( 'Visit author homepage' );
$value = sprintf( '<a href="%1$s" title="%2$s">%3$s</a>', $this->display( 'AuthorURI', true, $translate ), $attr, $value );
$value = sprintf( '<a href="%1$s">%2$s</a>', $this->display( 'AuthorURI', true, $translate ), $value );
} elseif ( ! $value ) {
$value = __( 'Anonymous' );
}