[wp-trac] [WordPress Trac] #51780: Add ability to easily get path to sized images (such as parameter to get_attached_file() or wp_get_attachment_thumb_file())
WordPress Trac
noreply at wordpress.org
Thu Feb 2 23:39:04 UTC 2023
#51780: Add ability to easily get path to sized images (such as parameter to
get_attached_file() or wp_get_attachment_thumb_file())
---------------------------------------------+------------------------
Reporter: paulschreiber | Owner: joedolson
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.2
Component: Media | Version: 5.5.3
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses:
---------------------------------------------+------------------------
Changes (by joedolson):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"55199" 55199]:
{{{
#!CommitTicketReference repository="" revision="55199"
Media: Add argument to `get_attached_file()` for subsizes.
Add a `$size` argument to `get_attached_file()` to simplify getting the
path to an intermediate image size.
Props paulschreiber, audrasjb, Mista-Flo.
Fixes #51780.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51780#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list