mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 15:47:05 +00:00
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:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user