diff --git a/src/wp-admin/includes/media.php b/src/wp-admin/includes/media.php index 0859180d2c..e9c0815c85 100644 --- a/src/wp-admin/includes/media.php +++ b/src/wp-admin/includes/media.php @@ -3295,29 +3295,34 @@ function attachment_submitbox_metadata() { if ( $author->exists() ) { $uploaded_by_name = $author->display_name ? $author->display_name : $author->nickname; $uploaded_by_link = get_edit_user_link( $author->ID ); - } ?> + } + ?>
- post_parent ) : + post_parent ) { $post_parent = get_post( $post->post_parent ); - if ( $post_parent ) : + if ( $post_parent ) { $uploaded_to_title = $post_parent->post_title ? $post_parent->post_title : __( '(no title)' ); - $uploaded_to_link = get_edit_post_link( $post->post_parent, 'raw' ); ?> + $uploaded_to_link = get_edit_post_link( $post->post_parent, 'raw' ); + ?> - - +