Add 'author' to rel attribute for get_the_author_link(). props sirzooro, CoenJacobs, Ipstenu. fixes #20047.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20615 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
82aacfe420
commit
a83b27e67b
|
@ -135,7 +135,7 @@ function the_author_meta($field = '', $user_id = false) {
|
|||
*/
|
||||
function get_the_author_link() {
|
||||
if ( get_the_author_meta('url') ) {
|
||||
return '<a href="' . get_the_author_meta('url') . '" title="' . esc_attr( sprintf(__("Visit %s’s website"), get_the_author()) ) . '" rel="external">' . get_the_author() . '</a>';
|
||||
return '<a href="' . get_the_author_meta('url') . '" title="' . esc_attr( sprintf(__("Visit %s’s website"), get_the_author()) ) . '" rel="author external">' . get_the_author() . '</a>';
|
||||
} else {
|
||||
return get_the_author();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue