Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#14906 closed defect (bug) (invalid)

post-thumbnail is not a valid thumbnail size

Reported by: oncletom's profile oncletom Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0.1
Component: General Keywords: thumbnail
Focuses: Cc:

Description

If I refer to the documentation or the source code, if I pass no argument to the_post_thumbnail, we are supposed to have a thumbnail.

However, I always get the full size picture (which is pretty bad).

the_post_thumbnail('post-thumbnail') gives the full size.
the_post_thumbnail() gives the full size.
the_post_thumbnail('thumbnail') gives the thumbnail size.

I guess there is a problem there. The default value should be thumbnail and not post-thumbnail.

Change History (1)

#1 @scribu
15 years ago

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

From the docs of the_post_thumbnail():

 * @param int $size Optional. Image size.  Defaults to 'post-thumbnail', which theme sets using set_post_thumbnail_size( $width, $height, $crop_flag );.
Note: See TracTickets for help on using tickets.