Changes between Initial Version and Version 1 of Ticket #28512
- Timestamp:
- 06/12/2014 04:34:42 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28512 – Description
initial v1 1 I'd like to propose making the Featured Image meta box thumbnail image sizefilterable.1 I'd like to propose we make the image size used to in the Featured Image meta box filterable. 2 2 3 Currently, the only way to change the size is to basically duplicate the code in `_wp_post_thumbnail_html` on the `admin_post_thumbnail_html` filterhook. This approach is not ideal:3 Currently, the only way to change the size is by duplicating the code in `_wp_post_thumbnail_html` on the `admin_post_thumbnail_html` hook. This approach is not ideal: 4 4 5 5 {{{ … … 33 33 }}} 34 34 35 I'm relying on the default image size ('thumbnail')in `wp_get_attachment_image()`. My specific use case is to display the actual featured image size that will be used in the theme as a method to reduce confusion for content managers.35 I'm relying on the default image size of 'thumbnail' in `wp_get_attachment_image()`. My specific use case is to display the actual featured image size that will be used in the theme as a method to reduce confusion for content managers. 36 36 37 I had previously looked at adding a filter in `image_downsize()`, but I think the context would be far too muddled and tough to target that far down the call stack.37 I looked at adding a filter to `image_downsize()` further down the call stack, but determined the context would be too-easily muddled. 38 38 39 I also looked at#20205, which proposes making the return of `wp_get_attachment_image_src()` filterable, though that wouldn't really help here as you're still basically required to regenerate the return markup.39 Related-ish is #20205, which proposes making the return of `wp_get_attachment_image_src()` filterable, though that wouldn't really help here as you're still basically required to regenerate the return markup.