Ticket #21944: 21944.diff
| File 21944.diff, 420 bytes (added by scribu, 9 months ago) |
|---|
-
wp-includes/post.php
diff --git wp-includes/post.php wp-includes/post.php index ff54440..1cdfbbc 100644
function register_post_type( $post_type, $args = array() ) { 1100 1100 'delete_with_user' => null, 1101 1101 ); 1102 1102 $args = wp_parse_args($args, $defaults); 1103 1104 $args = apply_filters( 'post_type_args', $args ); 1105 1103 1106 $args = (object) $args; 1104 1107 1105 1108 $post_type = sanitize_key($post_type);