WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #28512


Ignore:
Timestamp:
06/12/2014 04:34:42 PM (6 years ago)
Author:
DrewAPicture
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28512 – Description

    initial v1  
    1 I'd like to propose making the Featured Image meta box thumbnail image size filterable.
     1I'd like to propose we make the image size used to in the Featured Image meta box filterable.
    22
    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` filter hook. This approach is not ideal:
     3Currently, 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:
    44
    55{{{
     
    3333}}}
    3434
    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.
     35I'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.
    3636
    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.
     37I looked at adding a filter to `image_downsize()` further down the call stack, but determined the context would be too-easily muddled.
    3838
    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.
     39Related-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.