Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 16 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:


It currently says a string is an int.

Let's call a duck_ a duck_.

Attachments (2)

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

Download all attachments as: .zip

Change History (10)

#1 @SergeyBiryukov
3 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.

#2 @helen
3 years ago

  • Keywords needs-patch added; has-patch removed

3 years ago

Adding in Array option for $size

#3 @georgestephanis
3 years ago

  • Keywords has-patch added; needs-patch removed

Added in array option for $size.

#4 @SergeyBiryukov
3 years ago

  • Keywords commit added

#5 @markjaquith
3 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

#6 @DrewAPicture
2 years ago

  • Keywords needs-codex added

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

#7 @stephcook22
16 months ago

  • Keywords needs-codex removed

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

#8 @DrewAPicture
16 months ago

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