Make WordPress Core

Changeset 37884


Ignore:
Timestamp:
06/28/2016 06:36:24 AM (9 years ago)
Author:
DrewAPicture
Message:

Docs: Improve the $post_type parameter description in the DocBlock for register_post_type().

See #32246.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r37883 r37884  
    898898 * @since 2.9.0
    899899 * @since 3.0.0 The `show_ui` argument is now enforced on the new post screen.
    900  * @since 4.4.0 The `show_ui` argument is now enforced on the post type listing screen and post editing screen.
     900 * @since 4.4.0 The `show_ui` argument is now enforced on the post type listing
     901 *              screen and post editing screen.
    901902 *
    902903 * @global array      $wp_post_types List of post types.
     
    904905 * @global WP         $wp            Used to add query vars.
    905906 *
    906  * @param string $post_type Post type key, must not exceed 20 characters.
     907 * @param string $post_type Post type key. Must not exceed 20 characters and may
     908 *                          only contain lowercase alphanumeric characters, dashes,
     909 *                          and underscores. See sanitize_key().
    907910 * @param array|string $args {
    908911 *     Array or string of arguments for registering a post type.
Note: See TracChangeset for help on using the changeset viewer.