Make WordPress Core


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

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

File:
1 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="" />
Note: See TracChangeset for help on using the changeset viewer.