From fe80bec9eefd3bdae7c60d45b815731961a6ae84 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Sun, 20 Sep 2015 09:04:21 +0000 Subject: [PATCH] Add `@since` docs for the `show_ui` argument in `register_post_type()`. See #33763 git-svn-id: https://develop.svn.wordpress.org/trunk@34353 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post-functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/post-functions.php b/src/wp-includes/post-functions.php index 04f888a055..33384474dd 100644 --- a/src/wp-includes/post-functions.php +++ b/src/wp-includes/post-functions.php @@ -876,6 +876,8 @@ function get_post_types( $args = array(), $output = 'names', $operator = 'and' ) * parameter), along with a string for the post type name. * * @since 2.9.0 + * @since 3.0.0 The `show_ui` argument is now enforced on the new post screen. + * @since 4.4.0 The `show_ui` argument is now enforced on the post type listing screen and post editing screen. * * @global array $wp_post_types List of post types. * @global WP_Rewrite $wp_rewrite Used for default feeds. @@ -907,7 +909,7 @@ function get_post_types( $args = array(), $output = 'names', $operator = 'and' ) * * ?{post_type_key}={single_post_slug} * * ?{post_type_query_var}={single_post_slug} * If not set, the default is inherited from $public. - * @type bool $show_ui Whether to generate a default UI for managing this post type in the + * @type bool $show_ui Whether to generate and allow a UI for managing this post type in the * admin. Default is value of $public. * @type bool $show_in_menu Where to show the post type in the admin menu. To work, $show_ui * must be true. If true, the post type is shown in its own top level