diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 0449c5739a..a9a5e94fa7 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -1209,7 +1209,7 @@ function get_media_item( $attachment_id, $args = null ) { $send = ""; if ( $delete ) $delete = current_user_can('delete_post', $attachment_id) ? "" . __('Move to Trash') . " " . __('Undo?') . "" : ""; - if ( 'image' == $type && get_post_image_id($_GET['post_id']) != $attachment_id ) + if ( 'image' == $type && current_theme_supports( 'post-thumbnails' ) && get_post_image_id($_GET['post_id']) != $attachment_id ) $thumbnail = "" . esc_html__( "Use as thumbnail" ) . ""; if ( ( $send || $thumbnail || $delete ) && !isset($form_fields['buttons']) )