Changeset 49995
- Timestamp:
- 01/21/2021 12:20:05 PM (4 years ago)
- Location:
- branches/5.6
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.6
-
branches/5.6/src/wp-admin/includes/media.php
r49384 r49995 3289 3289 $att_url = wp_get_attachment_url( $attachment_id ); 3290 3290 3291 $author = get_userdata( $post->post_author );3291 $author = new WP_User( $post->post_author ); 3292 3292 3293 3293 $uploaded_by_name = __( '(no author)' ); 3294 3294 $uploaded_by_link = ''; 3295 3295 3296 if ( $author->exists() ) { 3296 3297 $uploaded_by_name = $author->display_name ? $author->display_name : $author->nickname; -
branches/5.6/src/wp-includes/media.php
r49753 r49995 3862 3862 3863 3863 $author = new WP_User( $attachment->post_author ); 3864 3864 3865 if ( $author->exists() ) { 3865 3866 $author_name = $author->display_name ? $author->display_name : $author->nickname;
Note: See TracChangeset
for help on using the changeset viewer.