WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/28/2010 09:56:43 PM (9 years ago)
Author:
markjaquith
Message:

Expand submit_button() capabilities. Replace all (or almost all) manual HTML instances in WP. props sbressler. see #15064

File:
1 edited

Legend:

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

    r15902 r16061  
    480480            <input type="hidden" name="post_type" value="post" />
    481481            <?php wp_nonce_field('add-post'); ?>
    482             <input type="submit" name="save" id="save-post" class="button" tabindex="4" value="<?php esc_attr_e('Save Draft'); ?>" />
     482            <?php submit_button( __( 'Save Draft' ), 'button', 'save', false, array( 'id' => 'save-post', 'tabindex'=> 4 ) ); ?>
    483483            <input type="reset" value="<?php esc_attr_e( 'Reset' ); ?>" class="button" />
    484484            <span id="publishing-action">
Note: See TracChangeset for help on using the changeset viewer.