[wp-trac] [WordPress Trac] #37681: Remove `function_exists( 'ini_get' )` from `_load_image_to_edit_path()`

WordPress Trac noreply at wordpress.org
Wed Aug 17 03:04:20 UTC 2016


#37681: Remove `function_exists( 'ini_get' )` from `_load_image_to_edit_path()`
------------------------------+------------------
 Reporter:  dd32              |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  4.7
Component:  General           |     Version:
 Severity:  trivial           |  Resolution:
 Keywords:  has-patch commit  |     Focuses:
------------------------------+------------------

Comment (by dd32):

 If anyone is curious as to when this code is hit..

 It appears to be hit if you're editing an image which was uploaded pre-2.7
 and/or if the file metadata has gone missing. In that case, the image
 editors will treat the image URL as the source image through the
 filesystem wrappers, bypassing `wp_remote_get()`, which is why the `fopen`
 and `allow_url_fopen` are there.

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


More information about the wp-trac mailing list