Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing argument type for supports in register_post_type() #5537

Closed
wants to merge 1 commit into from

Conversation

jeremyfelt
Copy link
Member

@jeremyfelt jeremyfelt commented Oct 20, 2023

Trac ticket: https://core.trac.wordpress.org/ticket/59690


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

@@ -1641,15 +1641,15 @@ function get_post_types( $args = array(), $output = 'names', $operator = 'and' )
* See get_post_type_capabilities().
* @type bool $map_meta_cap Whether to use the internal default meta capability handling.
* Default false.
* @type array $supports Core feature(s) the post type supports. Serves as an alias for calling
* @type array|bool $supports Core feature(s) the post type supports. Serves as an alias for calling
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @type array|bool $supports Core feature(s) the post type supports. Serves as an alias for calling
* @type array|false $supports Core feature(s) the post type supports. Serves as an alias for calling

Let's make it explicit that only false is supported, not true

@SergeyBiryukov
Copy link
Member

Thanks for the PR! Merged in r57150.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants