WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/01/2010 08:39:15 PM (11 years ago)
Author:
markjaquith
Message:

Doh. [16646] and [16650] were made against the wrong branch. Revert. see #13709. see #15621

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/wp-includes/post.php

    r16650 r16668  
    801801 * @param string $post_type Name of the post type.
    802802 * @param array|string $args See above description.
    803  * @return object|WP_Error the registered post type object, or an error object
     803 * @return object the registered post type object
    804804 */
    805805function register_post_type($post_type, $args = array()) {
     
    822822    $post_type = sanitize_user($post_type, true);
    823823    $args->name = $post_type;
    824 
    825     if ( strlen( $post_type ) > 20 )
    826             return new WP_Error( 'post_type_too_long', __( 'Post types cannot exceed 20 characters in length' ) );
    827824
    828825    // If not set, default to the setting for public.
Note: See TracChangeset for help on using the changeset viewer.