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:


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) {

string(122) ""


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 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.


Note: See TracTickets for help on using tickets.