[wp-trac] [WordPress Trac] #44563: WordPress 4.9.7 Media delete changes break plugins saving media via stream wrappers

WordPress Trac noreply at wordpress.org
Wed Jul 11 03:44:01 UTC 2018


#44563: WordPress 4.9.7 Media delete changes break plugins saving media via stream
wrappers
--------------------------+-----------------------------
 Reporter:  antonypuckey  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  4.9.7
 Severity:  normal        |   Keywords:  has-patch
  Focuses:                |
--------------------------+-----------------------------
 This commit:
 [https://github.com/WordPress/WordPress/commit/c9dce0606b0d7e6f494d4abe7b193ac046a322cd]
 breaks plugins that save media to external systems via stream wrappers.

 The underlying cause of this is realpath() does not accept a stream url as
 valid path and always returns false.

 Im not that familiar with wordpress yet but I have created a patch that
 fixes the problem which i have attached.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44563>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list