diff --git a/src/wp-admin/includes/class-wp-media-list-table.php b/src/wp-admin/includes/class-wp-media-list-table.php index c9df68629e..48e4363980 100644 --- a/src/wp-admin/includes/class-wp-media-list-table.php +++ b/src/wp-admin/includes/class-wp-media-list-table.php @@ -329,7 +329,7 @@ foreach ( $columns as $column_name => $column_display_name ) { $parent_type = get_post_type_object( $parent->post_type ); ?> > - post_parent ) && $parent_type->show_ui ) { ?> + post_parent ) && $parent_type && $parent_type->show_ui ) { ?>