Make WordPress Core

Opened 4 months ago

Closed 3 months ago

Last modified 3 months 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
3 months ago

  • Milestone changed from Awaiting Review to 6.5

#3 @SergeyBiryukov
3 months 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:


3 months ago
#4

Thanks for the PR! Merged in r57150.

Note: See TracTickets for help on using tickets.