[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
Tue Nov 5 17:51:48 UTC 2019


#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:  trunk
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+---------------------
Changes (by azaozz):

 * milestone:  Awaiting Review => 5.4


Comment:

 As far as I see the `$unfiltered` params are somewhat crude way to pass
 context to these functions and filters (they were added quite some time
 ago). Perhaps it can be passed-through in `wp_get_original_image_path()`,
 but may be better to add support for full "context" there instead?

 There's also no `$unfiltered` in `wp_get_attachment_url()`. Don't think
 introducing that is a good idea. Currently if a plugin wishes so, the
 filters can be bypassed by hooking-in early. The same code/method would
 still work for the new `wp_get_original_image_url()`.

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


More information about the wp-trac mailing list