Ticket #13709: 13709.patch
File 13709.patch, 414 bytes (added by , 14 years ago) |
---|
-
post.php
899 899 $args = wp_parse_args($args, $defaults); 900 900 $args = (object) $args; 901 901 902 $post_type = s anitize_key($post_type);902 $post_type = substr( sanitize_key($post_type), 0, 20 ); 903 903 $args->name = $post_type; 904 904 905 905 // If not set, default to the setting for public.