Make WordPress Core

Opened 12 years ago

Closed 11 years ago

Last modified 10 years ago

#22885 closed defect (bug) (fixed)

Correct the PHPDOC for the_post_thumbnail

Reported by: georgestephanis's profile georgestephanis Owned by: markjaquith's profile 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 12 years ago.
22885.2.diff (746 bytes) - added by georgestephanis 11 years ago.
Adding in Array option for $size

Download all attachments as: .zip

Change History (10)

#1 @SergeyBiryukov
12 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
11 years ago

  • Keywords needs-patch added; has-patch removed

11 years ago

Adding in Array option for $size

#3 @georgestephanis
11 years ago

  • Keywords has-patch added; needs-patch removed

Added in array option for $size.

#4 @SergeyBiryukov
11 years ago

  • Keywords commit added

#5 @markjaquith
11 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
11 years ago

  • Keywords needs-codex added

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

#7 @stephcook22
10 years 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
10 years ago

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