Changeset 15220 for trunk/wp-includes/post.php
- Timestamp:
- 06/11/2010 03:53:41 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r15190 r15220 674 674 */ 675 675 function is_post_type_hierarchical( $post_type ) { 676 if ( ! is_post_type( $post_type ) )676 if ( ! post_type_exists( $post_type ) ) 677 677 return false; 678 678 … … 685 685 * 686 686 * @since 3.0.0 687 * @uses get_post_type ()687 * @uses get_post_type_object() 688 688 * 689 689 * @param string Post type name 690 690 * @return bool Whether post type is registered. 691 691 */ 692 function is_post_type( $post_type ) {692 function post_type_exists( $post_type ) { 693 693 return (bool) get_post_type_object( $post_type ); 694 694 }
Note: See TracChangeset
for help on using the changeset viewer.