Make WordPress Core

Opened 10 years ago

Closed 7 years ago

#39126 closed defect (bug) (worksforme)

wp_get_attachment_image_src Bug

Reported by: andrewwest Owned by:
Priority: normal Milestone:
Component: Media Version:
Severity: normal Keywords:
Cc: Focuses:

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 (1)

#1 @desrosj
7 years ago

  • Component GeneralMedia
  • Milestone Awaiting Review
  • Resolutionworksforme
  • Status newclosed
  • Version 4.6.1

Hi @andrewwest,

First, my apologies that it took so long for someone to get back to you. In the future, requests like these belong in the WordPress.org support forums.

I am closing this because I am unable to reproduce this with the details provided. I hope that you were able to figure this out. If your issue still persists and you have narrowed it down to an issue in the core codebase, feel free to reopen this with more details.

Thanks!

Note: See TracTickets for help on using tickets.