Make WordPress Core


Ignore:
Timestamp:
10/28/2010 09:56:43 PM (14 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/custom-background.php

    r15830 r16061  
    211211<form method="post" action="">
    212212<?php wp_nonce_field('custom-background-remove', '_wpnonce-custom-background-remove'); ?>
    213 <input type="submit" class="button" name="remove-background" value="<?php esc_attr_e('Remove Background Image'); ?>" /><br/>
     213<?php submit_button( __( 'Remove Background Image' ), 'button', 'remove-background', false ); ?><br/>
    214214<?php _e('This will remove the background image. You will not be able to restore any customizations.') ?>
    215215</form>
     
    224224<form method="post" action="">
    225225<?php wp_nonce_field('custom-background-reset', '_wpnonce-custom-background-reset'); ?>
    226 <input type="submit" class="button" name="reset-background" value="<?php esc_attr_e('Restore Original Image'); ?>" /><br/>
     226<?php submit_button( __( 'Restore Original Image' ), 'button', 'reset-background', false ); ?><br/>
    227227<?php _e('This will restore the original background image. You will not be able to restore any customizations.') ?>
    228228</form>
     
    237237<input type="hidden" name="action" value="save" />
    238238<?php wp_nonce_field('custom-background-upload', '_wpnonce-custom-background-upload') ?>
    239 <input type="submit" class="button" value="<?php esc_attr_e('Upload'); ?>" />
     239<?php submit_button( __( 'Upload' ), 'button', 'submit', false ); ?>
    240240</p>
    241241</form>
Note: See TracChangeset for help on using the changeset viewer.