diff --git a/wp-admin/includes/class-wp-media-list-table.php b/wp-admin/includes/class-wp-media-list-table.php index cb633d1c86..c3b5faade0 100644 --- a/wp-admin/includes/class-wp-media-list-table.php +++ b/wp-admin/includes/class-wp-media-list-table.php @@ -302,13 +302,11 @@ foreach ( $columns as $column_name => $column_display_name ) { break; case 'parent': - if ( $post->post_parent > 0 ) { - if ( get_post( $post->post_parent ) ) { - $title =_draft_or_post_title( $post->post_parent ); - } + if ( $post->post_parent > 0 && get_post( $post->post_parent ) ) { + $title = _draft_or_post_title( $post->post_parent ); ?>