$size =
apply_filters( 'admin_post_thumbnail_size',
$size,
$thumbnail_id,
$post );
$thumbnail_html =
wp_get_attachment_image( $thumbnail_id,
$size );
if ( !
empty( $thumbnail_html ) ) { $content =
sprintf( $set_thumbnail_link,
esc_url( $upload_iframe_src ),
' aria-describedby="set-post-thumbnail-desc"',
$thumbnail_html );
$content .= '<p class="hide-if-no-js howto" id="set-post-thumbnail-desc">' .
__( 'Click the image to edit or update'
) . '</p>';
$content .= '<p class="hide-if-no-js"><a href="#" id="remove-post-thumbnail">' .
esc_html( $post_type_object->labels->remove_featured_image
) . '</a></p>';
} }