WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 10 months ago

#22885 closed defect (bug) (fixed)

Correct the PHPDOC for the_post_thumbnail

Reported by: georgestephanis Owned by: markjaquith
Milestone: 3.6 Priority: normal
Severity: normal Version: 3.5
Component: Media Keywords: has-patch commit
Focuses: docs Cc:

Description

It currently says a string is an int.

Let's call a duck_ a duck_.

Attachments (2)

22885.diff (740 bytes) - added by georgestephanis 2 years ago.
22885.2.diff (746 bytes) - added by georgestephanis 2 years ago.
Adding in Array option for $size

Download all attachments as: .zip

Change History (10)

@georgestephanis2 years ago

comment:1 @SergeyBiryukov2 years ago

  • Component changed from General to Inline Docs
  • Milestone changed from Awaiting Review to 3.6
  • Version changed from trunk to 3.5

$size can also be an array.

comment:2 @helen2 years ago

  • Keywords needs-patch added; has-patch removed

@georgestephanis2 years ago

Adding in Array option for $size

comment:3 @georgestephanis2 years ago

  • Keywords has-patch added; needs-patch removed

Added in array option for $size.

comment:4 @SergeyBiryukov2 years ago

  • Keywords commit added

comment:5 @markjaquith2 years ago

  • Owner set to markjaquith
  • Resolution set to fixed
  • Status changed from new to closed

In 23227:

Fix the PHPDoc for the_post_thumbnail(). props georgestephanis. fixes #22885

comment:6 @DrewAPicture2 years ago

  • Keywords needs-codex added

$size param in the_post_thumbnail() can accept either a string or array.

comment:7 @stephcook2210 months ago

  • Keywords needs-codex removed

Current codex looks to already include reference to the $size param accepting an array or string including examples.

comment:8 @DrewAPicture10 months ago

  • Component changed from Inline Docs to Media
  • Focuses docs added
Note: See TracTickets for help on using tickets.