Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#14712 closed defect (bug) (invalid)

the_post_thumbnail & get_the_post_thumnail different size options

Reported by: patnz's profile patnz Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0.1
Component: Post Thumbnails Keywords: the_post_thumbnail post thumbnail size
Focuses: Cc:

Description

the_post_thumbnail('full'),the_post_thumbnail('original') both work fine.

get_the_post_thumnail('full'),get_the_post_thumbnail('original') both return nothing.

Tested on two different setups both with 3.01.

When I modify post-thumbnail-template.php so the_post_thumbnail() returns rather than echos this seems to work fine also.

Change History (1)

#1 @nacin
14 years ago

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

Note the function argument differences:

function the_post_thumbnail( $size = 'post-thumbnail', $attr = '' )
function get_the_post_thumbnail( $post_id = NULL, $size = 'post-thumbnail', $attr = '' )
Note: See TracTickets for help on using tickets.