[wp-trac] [WordPress Trac] #61423: Issue with returned url on wp_get_attachment_image_src using FSE
WordPress Trac
noreply at wordpress.org
Thu Jun 13 12:08:34 UTC 2024
#61423: Issue with returned url on wp_get_attachment_image_src using FSE
--------------------------+------------------------------
Reporter: n0th | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 6.5.4
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by mathieulamiotwpmedia):
I get the same results, it's working well on my side. Maybe I am missing
something?
Here is the snippet I used:
{{{
$imgid = 23; //need to get it dynamically
$imgurl = wp_get_attachment_image_src( $imgid, 'medium' ); //use custom
set size
error_log('Test MLT: '. $imgurl[0]);
}}}
I don't expect much differences between wp_get_attachment_image_src &
wp_get_attachment_image_url based on wp_get_attachment_image_url code (see
https://developer.wordpress.org/reference/functions/wp_get_attachment_image_url/)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61423#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list