Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 12 years ago

#22885 closed defect (bug) (fixed)

Correct the PHPDOC for the_post_thumbnail

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

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 14 years ago.
22885.2.diff​ (746 bytes ) - added by georgestephanis 14 years ago.
Adding in Array option for $size

Download all attachments as: .zip

Change History (10)

#1 @SergeyBiryukov
14 years ago

  • Component General → Inline Docs
  • Milestone Awaiting Review → 3.6
  • Version trunk → 3.5

$size can also be an array.

#2 @helen
14 years ago

  • Keywords needs-patch added; has-patch removed

@georgestephanis
14 years ago

Adding in Array option for $size

#3 @georgestephanis
14 years ago

  • Keywords has-patch added; needs-patch removed

Added in array option for $size.

#4 @SergeyBiryukov
14 years ago

  • Keywords commit added

#5 @markjaquith
14 years ago

  • Owner set to markjaquith
  • Resolution → fixed
  • Status new → closed

In 23227:

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

#6 @DrewAPicture
13 years ago

  • Keywords needs-codex added

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

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

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