WordPress.org

Make WordPress Core

Ticket #12796: template.php.2.diff

File template.php.2.diff, 925 bytes (added by scribu, 5 years ago)

Better way to do it

  • wp-admin/includes/template.php

     
    6363 
    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="" /> 
    6969                <span class="error" style="display:none;"></span>