From d150e9e54f6f46f0ff4dfcfcc70f15c7cffab412 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Tue, 28 Jun 2016 06:36:24 +0000 Subject: [PATCH] Docs: Improve the `$post_type` parameter description in the DocBlock for `register_post_type()`. See #32246. git-svn-id: https://develop.svn.wordpress.org/trunk@37884 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index c33820b0e1..9778634a40 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -897,13 +897,16 @@ function get_post_types( $args = array(), $output = 'names', $operator = 'and' ) * * @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. + * @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. * @global WP $wp Used to add query vars. * - * @param string $post_type Post type key, must not exceed 20 characters. + * @param string $post_type Post type key. Must not exceed 20 characters and may + * only contain lowercase alphanumeric characters, dashes, + * and underscores. See sanitize_key(). * @param array|string $args { * Array or string of arguments for registering a post type. *