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
+2 -2
View File
@@ -1241,7 +1241,7 @@ function wp_post_revision_title( $revision, $link = true ) {
* @uses wp_get_post_revisions()
* @uses wp_post_revision_title()
* @uses get_edit_post_link()
* @uses get_author_name()
* @uses get_the_author_meta()
*
* @todo split into two functions (list, form-table) ?
*
@@ -1286,7 +1286,7 @@ function wp_list_post_revisions( $post_id = 0, $args = null ) {
continue;
$date = wp_post_revision_title( $revision );
$name = get_author_name( $revision->post_author );
$name = get_the_author_meta( 'display_name', $revision->post_author );
if ( 'form-table' == $format ) {
if ( $left )