| 1267 | | if ( !isset( $_wp_additional_image_sizes['post-thumbnail'] ) ) |
| 1268 | | $thumbnail_html = wp_get_attachment_image( $thumbnail_id, array( $content_width, $content_width ) ); |
| 1269 | | else |
| 1270 | | $thumbnail_html = wp_get_attachment_image( $thumbnail_id, 'post-thumbnail' ); |
| | 1267 | |
| | 1268 | $size = isset( $_wp_additional_image_sizes['post-thumbnail'] ) ? 'post-thumbnail' : array( $content_width, $content_width ); |
| | 1269 | |
| | 1270 | /** |
| | 1271 | * Filter the admin post thumbnail size for the Featured Image meta box. |
| | 1272 | * |
| | 1273 | * @since 4.0.0 |
| | 1274 | * |
| | 1275 | * @param string|array $size Post thumbnail size. If the 'post-thumbnail' image size |
| | 1276 | * is set, `$size` equals an array with `$content_width` |
| | 1277 | * as the height and width values. Otherwise, 'post-thumbnail'. |
| | 1278 | * @param int $thumbnail_id Thumbnail ID. |
| | 1279 | */ |
| | 1280 | $size = apply_filters( 'admin_post_thumbnail_size', $size, $thumbnail_id ); |
| | 1281 | |
| | 1282 | $thumbnail_html = wp_get_attachment_image( $thumbnail_id, $size ); |
| | 1283 | |