[wp-trac] [WordPress Trac] #48421: Add $unfiltered param to wp_get_original_image_path() and wp_get_original_image_url() functions

WordPress Trac noreply at wordpress.org
Thu Feb 6 15:45:54 UTC 2020


#48421: Add $unfiltered param to wp_get_original_image_path() and
wp_get_original_image_url() functions
-------------------------------+---------------------
 Reporter:  ianmjones          |       Owner:  (none)
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  5.4
Component:  Media              |     Version:  5.3
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+---------------------
Changes (by joemcgill):

 * keywords:   => reporter-feedback


Comment:

 For `wp_get_original_image_path()` it might make sense to pass `true` as
 the second parameter to the `get_attached_file()` call when that is used
 as a fallback for the image path. Like @azaozz, I don't see a great way of
 bypassing filters when calling `wp_get_original_image_url()` though.

 @ianmjones can you share a use case where this is currently tripping you
 up?

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


More information about the wp-trac mailing list