[wp-trac] [WordPress Trac] #39476: wp_delete_file filter expects both absolute and relative paths

WordPress Trac noreply at wordpress.org
Thu Jan 5 11:23:19 UTC 2017


#39476: wp_delete_file filter expects both absolute and relative paths
--------------------------+--------------------
 Reporter:  rmccue        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.7.2
Component:  Media         |     Version:  4.2
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+--------------------

Comment (by dd32):

 Seems most plugins are related to deleting caches and extra files after
 attachment deletion. A bunch of the plugins however appear to expect to
 receive relative paths on the filter.
 A bunch of others pass what appears to probably be relative paths to the
 `wp_delete_file` filter too.

 I don't really see it as a blocker to change here, but I question if it
 should be in a point release. Here's the list of plugins who include
 `wp_delete_file` and `filter` on the same line if someone would like to
 look closer.
 {{{
 polylang
 post-thumbnail-editor
 selectel-storage-upload
 wp2cloud-wordpress-to-cloud
 geodirectory
 mailbase
 evdbfiles
 tantan-s3
 upload-to-ftp
 scissors-continued
 profile-custom-content-type
 editor-by-mintboard
 hammy
 detuyun-image-cloud-storage
 qiniu-cloud
 upyun
 file-gallery
 scissors-watermark
 hm-portfolio
 storageqloud-for-wordpress
 mapify-lite-google-maps-plus
 wp-thumb
 rotating-header
 scissors
 cdn-tools
 tantan-s3-cloudfront
 xili-language
 foogallery
 conoha-object-sync
 }}}

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


More information about the wp-trac mailing list