Ticket #30013: 30013.2.diff
File 30013.2.diff, 448 bytes (added by , 10 years ago) |
---|
-
wp-includes/post.php
1148 1148 function get_post_type_object( $post_type ) { 1149 1149 global $wp_post_types; 1150 1150 1151 if ( empty($wp_post_types[$post_type]) )1151 if ( ! is_scalar( $post_type ) || empty( $wp_post_types[ $post_type ] ) ) 1152 1152 return null; 1153 1153 1154 1154 return $wp_post_types[$post_type];