Make WordPress Core

Ticket #13709: 13709.patch

File 13709.patch, 414 bytes (added by johnpbloch, 14 years ago)
  • post.php

     
    899899        $args = wp_parse_args($args, $defaults);
    900900        $args = (object) $args;
    901901
    902         $post_type = sanitize_key($post_type);
     902        $post_type = substr( sanitize_key($post_type), 0, 20 );
    903903        $args->name = $post_type;
    904904
    905905        // If not set, default to the setting for public.