Make WordPress Core


Ignore:
Timestamp:
12/09/2008 09:07:36 AM (16 years ago)
Author:
markjaquith
Message:

Move from generic "Save" to better "Update X", more consistent use of button-primary for major actions. fixes #8374. props azaozz, FFEMTcJ

File:
1 edited

Legend:

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

    r10122 r10137  
    251251    <p class="inline-edit-save submit">
    252252        <a accesskey="c" href="#inline-edit" title="<?php _e('Cancel'); ?>" class="cancel button-secondary alignleft"><?php _e('Cancel'); ?></a>
    253         <a accesskey="s" href="#inline-edit" title="<?php _e('Save'); ?>" class="save button-primary alignright"><?php _e('Save'); ?></a>
     253        <?php $update_text = ( $is_tag ) ? __( 'Update Tag' ) : __( 'Update Category' ); ?>
     254        <a accesskey="s" href="#inline-edit" title="<?php echo attribute_escape( $update_text ); ?>" class="save button-primary alignright"><?php echo $update_text; ?></a>
    254255        <img class="waiting" style="display:none;" src="images/loading.gif" alt="" />
    255256        <span class="error" style="display:none;"></span>
     
    11841185        <?php if ( ! $bulk ) {
    11851186            wp_nonce_field( 'inlineeditnonce', '_inline_edit', false ); ?>
    1186             <a accesskey="s" href="#inline-edit" title="<?php _e('Save'); ?>" class="button-primary save alignright"><?php _e('Save'); ?></a>
     1187            $update_text = ( $is_page ) ? __( 'Update Page' ) : __( 'Update Post' );
     1188            <a accesskey="s" href="#inline-edit" title="<?php _e('Update'); ?>" class="button-primary save alignright"><?php echo attribute_escape( $update_text ); ?></a>
    11871189            <img class="waiting" style="display:none;" src="images/loading.gif" alt="" />
    1188         <?php } else { ?>
    1189             <input accesskey="s" class="button-primary alignright" type="submit" name="bulk_edit" value="<?php _e('Save'); ?>" />
     1190        <?php } else {
     1191            $update_text = ( $is_page ) ? __( 'Update Pages' ) : __( 'Update Posts' );
     1192        ?>
     1193            <input accesskey="s" class="button-primary alignright" type="submit" name="bulk_edit" value="<?php echo attribute_escape( $update_text ); ?>" />
    11901194        <?php } ?>
    11911195        <input type="hidden" name="post_view" value="<?php echo $m; ?>" />
     
    21532157    <a href="#comments-form" class="cancel button-secondary alignleft" tabindex="106"><?php _e('Cancel'); ?></a>
    21542158    <a href="#comments-form" class="save button-primary alignright" tabindex="104">
    2155     <span id="savebtn" style="display:none;"><?php _e('Save'); ?></span>
     2159    <span id="savebtn" style="display:none;"><?php _e('Update Comment'); ?></span>
    21562160    <span id="replybtn" style="display:none;"><?php _e('Submit Reply'); ?></span></a>
    21572161    <img class="waiting" style="display:none;" src="images/loading.gif" alt="" />
Note: See TracChangeset for help on using the changeset viewer.