From 5e36f9f821429fe0eba60ae3afcf2b0903569303 Mon Sep 17 00:00:00 2001 From: nacin Date: Sat, 10 Apr 2010 11:54:33 +0000 Subject: [PATCH] Quick edit taxonomy label. props scribu, keighl, fixes #12796 git-svn-id: http://svn.automattic.com/wordpress/trunk@14054 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 2 +- wp-includes/post.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 3036e5cf70..97d21a2a00 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -63,7 +63,7 @@ function inline_edit_term_row($type, $taxonomy) {

- + singular_label ); ?> diff --git a/wp-includes/post.php b/wp-includes/post.php index b26d038186..50647f5a8d 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -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; }