WordPress.org

Make WordPress Core

Opened 4 months ago

Closed 3 months ago

Last modified 8 weeks ago

#26683 closed defect (bug) (fixed)

Improve Documentation of add_post_type_support()

Reported by: philiparthurmoore Owned by: DrewAPicture
Milestone: 3.9 Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords: has-patch commit
Focuses: docs Cc:

Description

The DocBlocks for add_post_type_support do not mention post-formats; Codex does. The attached patch fixes this discrepancy.

Attachments (3)

improve-add_post_type_support-documentation.diff (742 bytes) - added by philiparthurmoore 4 months ago.
26683.diff (1.7 KB) - added by DrewAPicture 4 months ago.
moar phpdoc fixes
26683.2.diff (1.7 KB) - added by DrewAPicture 3 months ago.
Add 'core' keyword

Download all attachments as: .zip

Change History (11)

comment:1 philiparthurmoore4 months ago

  • Cc philip@… added

comment:2 kpdesign4 months ago

  • Component changed from Post Types to Inline Docs

comment:3 SergeyBiryukov4 months ago

  • Keywords has-patch added
  • Milestone changed from Awaiting Review to 3.9

DrewAPicture4 months ago

moar phpdoc fixes

comment:4 DrewAPicture4 months ago

Normally I would be in favor of moving the list of possible values into the parameter description they belong to, but I think in this instance the placement in the long description is better as it allows for more detailed explanation.

In 26683.diff I fixed a few other things in the phpdoc since we're in there.

DrewAPicture3 months ago

Add 'core' keyword

comment:5 DrewAPicture3 months ago

  • Keywords commit added

26683.2.diff adds the 'core' keyword to the description. It's possible to add non-core features to post types and themes, though not directly supported.

comment:6 DrewAPicture3 months ago

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

In 26911:

Improve inline documentation for add_post_type_support().

Props philiparthurmoore.
Fixes #26683.

comment:7 DrewAPicture8 weeks ago

  • Focuses docs added

comment:8 DrewAPicture8 weeks ago

  • Component changed from Inline Docs to Posts, Post Types
Note: See TracTickets for help on using tickets.