Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#23556 closed defect (bug) (duplicate)

wp_get_attachment_thumb_file() does not return the thumbnail path

Reported by: joshuaabenazer's profile JoshuaAbenazer Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Media Keywords: has-patch
Focuses: Cc:

Description

wp_get_attachment_thumb_file() does not return the thumbnail path as the function searches for the key "thumb" in the array which is returned from wp_get_attachment_metadata(), which actually does not exist at all. It should rather be searching for the key "thumbnail"

Attachments (1)

post.diff (907 bytes) - added by JoshuaAbenazer 11 years ago.
post.php

Download all attachments as: .zip

Change History (2)

@JoshuaAbenazer
11 years ago

post.php

#1 @SergeyBiryukov
11 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #17262.

Note: See TracTickets for help on using tickets.