mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user