Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#59690 closed defect (bug) (fixed)

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

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

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
2 years ago

  • Milestone changed from Awaiting Review to 6.5

#3 @SergeyBiryukov
2 years ago

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

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:


2 years ago
#4

Thanks for the PR! Merged in r57150.

Note: See TracTickets for help on using tickets.