Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Featured image meta box does not respect admin_post_thumbnail_size filter #7505

Closed
arpadHegedus opened this issue Jun 22, 2018 · 3 comments
Closed
Assignees
Labels
Backwards Compatibility Issues or PRs that impact backwards compatability [Feature] Media Anything that impacts the experience of managing media

Comments

@arpadHegedus
Copy link

Describe the bug
admin_post_thumbnail_size filter is not respected when loading the Featured Image meta box image. Instead the full size of the image is shown

@ajitbohra ajitbohra added the [Feature] Media Anything that impacts the experience of managing media label Jun 25, 2018
@danielbachhuber danielbachhuber added the Backwards Compatibility Issues or PRs that impact backwards compatability label Jun 27, 2018
@danielbachhuber
Copy link
Member

Hi @arpadHegedus,

What image size are you using / expecting in the Featured Image UI?

@danielbachhuber danielbachhuber self-assigned this Jul 11, 2018
@arpadHegedus
Copy link
Author

In regular WordPress it can be changed using the filter admin_post_thumbnail_size

For a UX best practice I want to show the same size version of the image in the admin as on the frontend. And for listing pages, I sometimes use specific other or custom image sizes. That's what I want to be able to reflect in the admin as well.

@danielbachhuber
Copy link
Member

@arpadHegedus I've submitted a pull request to include a new JavaScript filter for this: #8196

I've also created a page for it in my Gutenberg migration guide https://github.com/danielbachhuber/gutenberg-migration-guide/blob/master/filter-admin-post-thumbnail-size.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backwards Compatibility Issues or PRs that impact backwards compatability [Feature] Media Anything that impacts the experience of managing media
Projects
None yet
Development

No branches or pull requests

3 participants