Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/custom-header.php

    r16061 r15248  
    457457</td>
    458458</tr>
    459 <?php if ( current_theme_supports( 'custom-header-uploads' ) ) : ?>
     459
    460460<tr valign="top">
    461461<th scope="row"><?php _e( 'Upload Image' ); ?></th>
     
    469469        <input type="hidden" name="action" value="save" />
    470470        <?php wp_nonce_field( 'custom-header-upload', '_wpnonce-custom-header-upload' ) ?>
    471         <?php submit_button( __( 'Upload' ), 'button', 'submit', false ); ?>
     471        <input type="submit" class="button" value="<?php esc_attr_e( 'Upload' ); ?>" />
    472472    </p>
    473473    </form>
    474474</td>
    475475</tr>
    476 <?php endif; ?>
    477476</tbody>
    478477</table>
     
    485484<th scope="row"><?php _e( 'Default Images' ); ?></th>
    486485<td>
    487 <?php if ( current_theme_supports( 'custom-header-uploads' ) ) : ?>
    488486    <p><?php _e( 'If you don&lsquo;t want to upload your own image, you can use one of these cool headers.' ) ?></p>
    489 <?php else: ?>
    490     <p><?php _e( 'You can use one of these cool headers.' ) ?>
    491 <?php endif; ?>
    492487    <?php
    493488        $this->show_default_header_selector();
     
    502497<td>
    503498    <p><?php _e( 'This will remove the header image. You will not be able to restore any customizations.' ) ?></p>
    504     <?php submit_button( __( 'Remove Header Image' ), 'button', 'removeheader', false ); ?>
     499    <input type="submit" class="button" name="removeheader" value="<?php esc_attr_e( 'Remove Header Image' ); ?>" />
    505500</td>
    506501</tr>
     
    512507<td>
    513508    <p><?php _e( 'This will restore the original header image. You will not be able to restore any customizations.' ) ?></p>
    514     <?php submit_button( __( 'Restore Original Header Image' ), 'button', 'resetheader', false ); ?>
     509    <input type="submit" class="button" name="resetheader" value="<?php esc_attr_e( 'Restore Original Header Image' ); ?>" />
    515510</td>
    516511</tr>
     
    551546<td>
    552547    <p><?php _e( 'This will restore the original header text. You will not be able to restore any customizations.' ) ?></p>
    553     <?php submit_button( __( 'Restore Original Header Text' ), 'button', 'resettext', false ); ?>
     548    <input type="submit" class="button" name="resettext" value="<?php esc_attr_e( 'Restore Original Header Text' ); ?>" />
    554549</td>
    555550</tr>
     
    560555    <?php endif;
    561556
    562 do_action( 'custom_header_options' );
    563 
    564557wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?>
    565 
    566 <?php submit_button( null, 'primary', 'save-header-options' ); ?>
     558<p class="submit"><input type="submit" class="button-primary" name="save-header-options" value="<?php esc_attr_e( 'Save Changes' ); ?>" /></p>
    567559</form>
    568560</div>
     
    577569    function step_2() {
    578570        check_admin_referer('custom-header-upload', '_wpnonce-custom-header-upload');
    579         if ( ! current_theme_supports( 'custom-header-uploads' ) )
    580             wp_die( 'Cheatin&#8217; uh?' );
    581 
    582571        $overrides = array('test_form' => false);
    583572        $file = wp_handle_upload($_FILES['import'], $overrides);
     
    638627    </div>
    639628
     629    <p class="submit">
    640630    <input type="hidden" name="x1" id="x1" value="0"/>
    641631    <input type="hidden" name="y1" id="y1" value="0"/>
     
    645635    <input type="hidden" name="oitar" id="oitar" value="<?php echo esc_attr( $oitar ); ?>" />
    646636    <?php wp_nonce_field( 'custom-header-crop-image' ) ?>
    647 
    648     <?php submit_button( __( 'Crop and Publish' ) ); ?>
     637    <input type="submit" class="button-primary" value="<?php esc_attr_e( 'Crop and Publish' ); ?>" />
    649638    </p>
    650639</form>
     
    660649    function step_3() {
    661650        check_admin_referer('custom-header-crop-image');
    662         if ( ! current_theme_supports( 'custom-header-uploads' ) )
    663             wp_die( 'Cheatin&#8217; uh?' );
    664 
    665651        if ( $_POST['oitar'] > 1 ) {
    666652            $_POST['x1'] = $_POST['x1'] * $_POST['oitar'];
Note: See TracChangeset for help on using the changeset viewer.