Make WordPress Core

Opened 7 years ago

Closed 5 years ago

#39126 closed defect (bug) (worksforme)

wp_get_attachment_image_src Bug

Reported by: andrewwest's profile andrewwest Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Media 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 (1)

#1 @desrosj
5 years ago

  • Component changed from General to Media
  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed
  • Version 4.6.1 deleted

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.