[wp-trac] [WordPress Trac] #17864: Small bug when using "wp_delete_file" filter

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 21 21:02:22 UTC 2011


#17864: Small bug when using "wp_delete_file" filter
-------------------------------+-----------------------------
 Reporter:  DuGi_dk            |       Owner:  Morten Rugaard
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Future Release
Component:  Media              |     Version:  3.1.3
 Severity:  minor              |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+-----------------------------
Changes (by scribu):

 * component:  General => Media
 * milestone:  Awaiting Review => Future Release


Comment:

 In all cases, the callback should receives a path.

 I noticed that there are too many places where the 'wp_delete_file' filter
 is called manually.

 We should make a wp_delete_file() helper function. Patch incoming.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17864#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list