WordPress.org

Make WordPress Core

Opened 7 weeks ago

Last modified 7 weeks ago

#42117 new enhancement

Move inline docs from register_post_type() to WP_Post_Type::set_props()

Reported by: birgire Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.6
Component: Posts, Post Types Keywords: has-patch
Focuses: docs Cc:

Description

The function register_post_type() is a wrapper for a WP_Post_Type object, since version 4.6.

The method WP_Post_Type::set_props() is missing the detailed documentation for each argument, that is present for register_post_type().

So to avoid duplication, it looks like we should move it.

Attachments (3)

42117.diff (23.2 KB) - added by birgire 7 weeks ago.
42117.2.diff (23.1 KB) - added by birgire 7 weeks ago.
42117.3.diff (22.6 KB) - added by birgire 7 weeks ago.

Download all attachments as: .zip

Change History (4)

@birgire
7 weeks ago

@birgire
7 weeks ago

#1 @birgire
7 weeks ago

  • Keywords has-patch added

Moved it in 42117.2.diff

Wasn't sure though, how to handle the @since part,
but I moved only the parts that I thought were relevant.

@birgire
7 weeks ago

Note: See TracTickets for help on using tickets.