Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#59690 closed defect (bug) (fixed)

Add missing argument type for `supports` in `register_post_type()`

Reported by: jeremyfelt Owned by: SergeyBiryukov
Priority: normal Milestone: 6.5
Component: Posts, Post Types Version:
Severity: normal Keywords: has-patch
Cc: Focuses: docs

Description

The supports argument used when registering a post type with register_post_type() is usually passed as an array of features. If not included, feature support defaults to "title" and "editor". If set to false, no feature support is registered for the post type.

This support for false is not currently documented.

Change History (4)

#2 @SergeyBiryukov
3 years ago

  • Milestone Awaiting Review6.5

#3 @SergeyBiryukov
3 years ago

  • Owner set to SergeyBiryukov
  • Resolutionfixed
  • Status newclosed

In 57150:

Docs: Add missing argument type for supports in register_post_type().

If set to false, no feature support is registered for the post type.

Follow-up to [12751], [20734], [29091], [37883].

Props jeremyfelt, swissspidy.
Fixes #59690.

@SergeyBiryukov commented on PR #5537:


3 years ago
#4

Thanks for the PR! Merged in r57150.

Note: See TracTickets for help on using tickets.