Migrate final get_author_name() calls to use get_the_author_meta() instead. See #9393 props sivel.

git-svn-id: https://develop.svn.wordpress.org/trunk@11370 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood
2009-05-16 22:32:48 +00:00
parent 63c3617491
commit c98f9104b6
3 changed files with 13 additions and 7 deletions
+1 -1
View File
@@ -1486,7 +1486,7 @@ function feed_links_extra( $args ) {
} elseif ( is_author() ) {
$author_id = intval( get_query_var('author') );
$title = esc_attr(sprintf( $args['authortitle'], get_bloginfo('name'), $args['separator'], get_author_name( $author_id ) ));
$title = esc_attr(sprintf( $args['authortitle'], get_bloginfo('name'), $args['separator'], get_the_author_meta( 'display_name', $author_id ) ));
$href = get_author_feed_link( $author_id );
} elseif ( is_search() ) {
$title = esc_attr(sprintf( $args['searchtitle'], get_bloginfo('name'), $args['separator'], get_search_query() ));