[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 05:57:12 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        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Dear all

 When you use the function wp_get_attachment_image_url on a FSE theme it
 turns out that when it returns the url and the image has the typical size
 information, the ‘x’ that separates the sizes is not the letter ‘x’, it is
 a multiplication symbol. They look the same but are not, which makes the
 address completely useless.

 Expected behavior

 Receive same information from a function does not matter the type of theme
 used.

 Actual behavior

 If you have a classic theme the output its ok, if you use a FSE theme the
 output its different.

 Steps to reproduce

 1.- Activate a FSE theme (Twenty Twnety-Four for example.
 2.- Use the function to recevi thumbnails url for a resize image.
 3.- Put the url receive into the browser to check that it does not exists
 due the x symbol.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61423>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list