WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#25150 closed enhancement (fixed)

Sync inline docs between register_post_type() and register_taxonomy()

Reported by: ocean90 Owned by: ocean90
Milestone: 3.7 Priority: normal
Severity: normal Version:
Component: Inline Docs Keywords: has-patch
Focuses: Cc:

Description

  • register_taxonomy: Use the same doc format for the associative array arg as for register_post_type
  • register_taxonomy: Improve docs for _builtin, capabilities, hierarchical and rewrite args
  • register_taxonomy: Use the same order for $defaults as in doc block
  • register_taxonomy: Replace is_null with null ===, to be consistent
  • register_post_type: Use the same order for $defaults as in doc block
  • register_post_type: Improve docs for @uses and default fallbacks
  • and while we're on it: Whitespaces.

Attachments (1)

25150.patch (17.4 KB) - added by ocean90 8 years ago.

Download all attachments as: .zip

Change History (2)

@ocean90
8 years ago

#1 @ocean90
8 years ago

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

In 25130:

Improve inline docs for register_post_type() and register_taxonomy().

  • register_taxonomy: Use the same doc format for the associative array arg as used for register_post_type()
  • register_taxonomy: Improve docs for _builtin, capabilities, hierarchical and rewrite args
  • register_taxonomy: Use the same order in $defaults as in docblock
  • register_taxonomy: Replace is_null with null ===, to be consistent
  • register_post_type: Use the same order in $defaults as in docblock
  • register_post_type: Improve docs for @uses and default fallbacks

And while we're on it: Whitespaces.

fixes #25150.

Note: See TracTickets for help on using tickets.