[wp-trac] [WordPress Trac] #39126: wp_get_attachment_image_src Bug

WordPress Trac noreply at wordpress.org
Tue Dec 6 22:28:50 UTC 2016


#39126: wp_get_attachment_image_src Bug
--------------------------+-----------------------------
 Reporter:  andrewwest    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.6.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I cannot get the correct image width and height using these functions. It
 is returning 1px high and 1px wide.

 Function name: wp_get_attachment_image_src & wp_get_attachment_image
 Current Result of: wp_get_attachment_image_src($value, 'thumbnail') is...

 array(4) {
   [0]=>
   string(122) "https://www.beachsidebreaks.com.au/wp-
 content/uploads/2016/12/instances_f784389284af9460746cb42ced3866a3_57c639181a341.jpg"
   [1]=>
   int(1)
   [2]=>
   int(1)
   [3]=>
   bool(false)
 }

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


More information about the wp-trac mailing list