Quick edit taxonomy label. props scribu, keighl, fixes #12796

git-svn-id: https://develop.svn.wordpress.org/trunk@14054 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2010-04-10 11:54:33 +00:00
parent 4d5709b11d
commit f6e054f892
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -674,11 +674,11 @@ function get_post_stati( $args = array(), $output = 'names', $operator = 'or' )
function is_post_type_hierarchical( $post = false ) {
if ( is_string($post) && $is_post_type = get_post_type_object($post) )
return $is_post_type->hierarchical;
$ptype = get_post( $post );
if ( $ptype && $is_post_type = get_post_type_object($ptype->post_type) )
return $is_post_type->hierarchical;
return false;
}