WordPress.org

Make WordPress Core

Opened 19 months ago

#39126 new defect (bug)

wp_get_attachment_image_src Bug

Reported by: andrewwest Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.6.1
Component: General Keywords:
Focuses: Cc:

Description

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)

}

Change History (0)

Note: See TracTickets for help on using tickets.