WordPress.org

Make WordPress Core

Changeset 14054


Ignore:
Timestamp:
04/10/2010 11:54:33 AM (9 years ago)
Author:
nacin
Message:

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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r14039 r14054  
    6464    <p class="inline-edit-save submit">
    6565        <a accesskey="c" href="#inline-edit" title="<?php _e('Cancel'); ?>" class="cancel button-secondary alignleft"><?php _e('Cancel'); ?></a>
    66         <?php $update_text = ( 'post_tag' == $taxonomy ) ? __( 'Update Tag' ) : __( 'Update Category' ); ?>
     66        <?php $update_text = sprintf( __('Update %s'), $tax->singular_label ); ?>
    6767        <a accesskey="s" href="#inline-edit" title="<?php echo esc_attr( $update_text ); ?>" class="save button-primary alignright"><?php echo $update_text; ?></a>
    6868        <img class="waiting" style="display:none;" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />
  • trunk/wp-includes/post.php

    r14053 r14054  
    675675    if ( is_string($post) && $is_post_type = get_post_type_object($post) )
    676676        return $is_post_type->hierarchical;
    677    
     677
    678678    $ptype = get_post( $post );
    679679    if ( $ptype && $is_post_type = get_post_type_object($ptype->post_type) )
    680680        return $is_post_type->hierarchical;
    681        
     681
    682682    return false;
    683683}
Note: See TracChangeset for help on using the changeset viewer.