[wp-trac] [WordPress Trac] #16849: Add a filter for $overrides in wp_handle_upload()

WordPress Trac noreply at wordpress.org
Sun Dec 20 15:50:51 UTC 2020


#16849: Add a filter for $overrides in wp_handle_upload()
-------------------------+--------------------------
 Reporter:  iandunn      |       Owner:  johnbillion
     Type:  enhancement  |      Status:  reviewing
 Priority:  normal       |   Milestone:  5.7
Component:  Upload       |     Version:  3.1
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+--------------------------
Changes (by johnbillion):

 * keywords:  has-patch dev-feedback => has-patch


Comment:

 In [attachment:"16849.diff"] I've done the following:

 * Added the `$file` variable as a parameter to make contextual filtering
 of the overrides easier
 * Documented the possible elements of the `$overrides` array
 * Improved some other docs

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


More information about the wp-trac mailing list