[wp-trac] [WordPress Trac] #50089: Allow filtering of image uploads

WordPress Trac noreply at wordpress.org
Tue May 5 13:12:12 UTC 2020


#50089: Allow filtering of image uploads
-------------------------+------------------------------
 Reporter:  malthert     |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Media        |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------------------

Comment (by malthert):

 But these are hooks and they can NOT be used to set the success to false
 in case the upload was cancelled by my custom code. (unless I die() in
 them, but this makes it really hard to debug code for other people, bc if
 someone hooked already & died, later hooked actions may actually never
 run)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50089#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list