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:
parent
4d5709b11d
commit
f6e054f892
|
@ -63,7 +63,7 @@ function inline_edit_term_row($type, $taxonomy) {
|
|||
|
||||
<p class="inline-edit-save submit">
|
||||
<a accesskey="c" href="#inline-edit" title="<?php _e('Cancel'); ?>" class="cancel button-secondary alignleft"><?php _e('Cancel'); ?></a>
|
||||
<?php $update_text = ( 'post_tag' == $taxonomy ) ? __( 'Update Tag' ) : __( 'Update Category' ); ?>
|
||||
<?php $update_text = sprintf( __('Update %s'), $tax->singular_label ); ?>
|
||||
<a accesskey="s" href="#inline-edit" title="<?php echo esc_attr( $update_text ); ?>" class="save button-primary alignright"><?php echo $update_text; ?></a>
|
||||
<img class="waiting" style="display:none;" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />
|
||||
<span class="error" style="display:none;"></span>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue