WordPress.org

Make WordPress Core

Ticket #9393: post_template.patch

File post_template.patch, 724 bytes (added by mrmist, 6 years ago)

Uses get_the_author_meta instead of get_author_name()

  • wp-includes/post-template.php

     
    12411241 * @uses wp_get_post_revisions() 
    12421242 * @uses wp_post_revision_title() 
    12431243 * @uses get_edit_post_link() 
    1244  * @uses get_author_name() 
     1244 * @uses get_the_author_meta() 
    12451245 * 
    12461246 * @todo split into two functions (list, form-table) ? 
    12471247 * 
     
    12861286                        continue; 
    12871287 
    12881288                $date = wp_post_revision_title( $revision ); 
    1289                 $name = get_author_name( $revision->post_author ); 
     1289                $name = get_the_author_meta('display_name',$revision->post_author ); 
    12901290 
    12911291                if ( 'form-table' == $format ) { 
    12921292                        if ( $left )