Make WordPress Core

Opened 15 years ago

Closed 14 years ago

#14400 closed enhancement (invalid)

get_the_post_thumbnail() calling wp_get_attachment_image() with a non existant argument

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

Description

get_the_post_thumbnail() calls wp_get_attachment_image() with a 4th non-existant $attr argument.

I am not sure whethere $attr should be removed from get_the_post_thumbnail() as it is only used in the return filter (maybe if we remove it we will loose backward compatibility)

Attachments (1)

get_the_post_thumbnail.attr.diff (738 bytes) - added by wjm 15 years ago.

Download all attachments as: .zip

Change History (2)

#1 @nacin
14 years ago

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

I don't see how this is a non-existent argument. It's a pass-through: It goes straight to wp_get_attachment_image(), which then leverages it.

Note: See TracTickets for help on using tickets.