[wp-trac] [WordPress Trac] #17262: wp_get_attachment_thumb_file should check new 'thumbnail' image size
WordPress Trac
noreply at wordpress.org
Thu Jul 7 23:33:09 UTC 2022
#17262: wp_get_attachment_thumb_file should check new 'thumbnail' image size
-------------------------+-----------------------------
Reporter: lonnylot | Owner: SergeyBiryukov
Type: enhancement | Status: closed
Priority: normal | Milestone: Future Release
Component: Media | Version: 3.0
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
-------------------------+-----------------------------
Changes (by azaozz):
* status: reviewing => closed
* resolution: => fixed
Comment:
Fixed in [https://core.trac.wordpress.org/changeset/53685 53685]
Media:
- Deprecate wp_get_attachment_thumb_file().
- Make wp_get_attachment_thumb_url() an alias of
wp_get_attachment_image_url(). This fixes it to return the proper
thumbnail URL and fall back to returning the URL to image_meta['thumb'] if
only that exists.
Props: markhowellsmead, mukesh27, csesumonpro, SergeyBiryukov,
mikeschroder, killua99, joemcgill, mashukushibiki, mfgmicha, swissspidy,
romulodl, nacin, JoshuaAbenazer, wonderboymusic, lonnylot, azaozz.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/17262#comment:63>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list