#20218 closed enhancement (fixed)
set_post_thumbnail(): update_post_meta() could fail
Reported by: | webord | Owned by: | duck_ |
---|---|---|---|
Milestone: | 3.4 | Priority: | normal |
Severity: | normal | Version: | 3.4 |
Component: | Post Thumbnails | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
So I'm in a project where the defined thumbnail must always be bigger then a certain size, and my problem is whether I can filter to check the size of the image, using a filter on the update_{$meta_type}_metadata, the function set_post_thumbnail(), always return true, so my change is really small so the developer can filter and return false if it pleases;
In my case I would filter that and the content on admin_post_thumbnail_html to Warn the user that he cannot set a thumbnail with this size.
Check out the .diff, and if there any other place that I can change something, to make it better warn me.
Attachments (1)
Change History (8)
Note: See
TracTickets for help on using
tickets.
Changes