[wp-trac] [WordPress Trac] #20218: Filter set_post_thumbnail()
WordPress Trac
wp-trac at lists.automattic.com
Mon Mar 12 02:44:06 UTC 2012
#20218: Filter set_post_thumbnail()
-----------------------------+-----------------------------
Reporter: webord | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Post Thumbnails | Version: 3.4
Severity: normal | Keywords: dev-feedback
-----------------------------+-----------------------------
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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20218>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list