[wp-trac] [WordPress Trac] #43930: Inaccurate width and height returned when using wp_get_attachment_image_src on the backend.

WordPress Trac noreply at wordpress.org
Tue May 8 18:30:23 UTC 2018


#43930: Inaccurate width and height returned when using wp_get_attachment_image_src
on the backend.
--------------------------+------------------------------
 Reporter:  jwoolsch      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  4.9.5
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Changes (by jwoolsch):

 * keywords:  reporter-feedback =>


Comment:

 Try uploading the image before you add the custom image size. The error is
 happening when the requested size doesn't exist and the image data
 retrieved is of the original upload.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/43930#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list