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-header.php

    r15843 r16061  
    469469        <input type="hidden" name="action" value="save" />
    470470        <?php wp_nonce_field( 'custom-header-upload', '_wpnonce-custom-header-upload' ) ?>
    471         <input type="submit" class="button" value="<?php esc_attr_e( 'Upload' ); ?>" />
     471        <?php submit_button( __( 'Upload' ), 'button', 'submit', false ); ?>
    472472    </p>
    473473    </form>
     
    502502<td>
    503503    <p><?php _e( 'This will remove the header image. You will not be able to restore any customizations.' ) ?></p>
    504     <input type="submit" class="button" name="removeheader" value="<?php esc_attr_e( 'Remove Header Image' ); ?>" />
     504    <?php submit_button( __( 'Remove Header Image' ), 'button', 'removeheader', false ); ?>
    505505</td>
    506506</tr>
     
    512512<td>
    513513    <p><?php _e( 'This will restore the original header image. You will not be able to restore any customizations.' ) ?></p>
    514     <input type="submit" class="button" name="resetheader" value="<?php esc_attr_e( 'Restore Original Header Image' ); ?>" />
     514    <?php submit_button( __( 'Restore Original Header Image' ), 'button', 'resetheader', false ); ?>
    515515</td>
    516516</tr>
     
    551551<td>
    552552    <p><?php _e( 'This will restore the original header text. You will not be able to restore any customizations.' ) ?></p>
    553     <input type="submit" class="button" name="resettext" value="<?php esc_attr_e( 'Restore Original Header Text' ); ?>" />
     553    <?php submit_button( __( 'Restore Original Header Text' ), 'button', 'resettext', false ); ?>
    554554</td>
    555555</tr>
     
    564564wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?>
    565565
    566 <?php submit_button(); ?>
     566<?php submit_button( null, 'primary', 'save-header-options' ); ?>
    567567</form>
    568568</div>
Note: See TracChangeset for help on using the changeset viewer.