[wp-trac] [WordPress Trac] #48302: Big Image: Provide function to get original file URL
WordPress Trac
noreply at wordpress.org
Tue Oct 15 03:45:32 UTC 2019
#48302: Big Image: Provide function to get original file URL
--------------------------+-----------------------------
Reporter: kraftbj | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
After r46076, for big images, the original file is saved as attachment
metadata outside of the sizes array. This can make it a bit of an extra
work to get the original URL for an image.
Akin to `wp_get_original_image_path()`, we should add a
`wp_get_attachment_original_image_url()` as a complement to
`wp_get_attachment_image_url`.
This will make it easier for plugins to retrieve an URL for the highest
quality version available.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48302>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list