Changeset 34100 for trunk/src/wp-includes/post-functions.php
- Timestamp:
- 09/14/2015 12:02:05 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-functions.php
r34085 r34100 836 836 global $wp_post_types; 837 837 838 if ( empty($wp_post_types[$post_type]) )838 if ( ! is_scalar( $post_type ) || empty( $wp_post_types[ $post_type ] ) ) { 839 839 return null; 840 841 return $wp_post_types[$post_type]; 840 } 841 842 return $wp_post_types[ $post_type ]; 842 843 } 843 844
Note: See TracChangeset
for help on using the changeset viewer.