WordPress.org

Make WordPress Core

Changeset 13404


Ignore:
Timestamp:
02/25/10 19:32:10 (4 years ago)
Author:
ryan
Message:

Default header selector, second pass. see #12343

File:
1 edited

Legend:

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

    r13403 r13404  
    132132            } 
    133133        } 
     134 
    134135        if ( isset($_POST['resetheader']) ) { 
    135136            check_admin_referer('custom-header'); 
     
    138139 
    139140        if ( isset($_POST['default-header']) ) { 
     141            check_admin_referer('custom-header'); 
    140142            $this->process_default_headers(); 
    141143            if ( isset($this->default_headers[$_POST['default-header']]) ) 
     
    397399    wp_nonce_field('custom-header'); 
    398400    $this->show_default_header_selector(); 
    399     echo '<input type="submit" class="button" value="' . esc_attr__('Save Your Choice') . '"  />'; 
     401    echo '<input type="submit" class="button" value="' . esc_attr__('Save Changes') . '"  />'; 
    400402    echo '</form>'; 
    401403    echo '</div>'; 
     
    420422<div class="wrap"> 
    421423<h2><?php _e('Reset Header Image and Color'); ?></h2> 
     424<form method="post" action="<?php echo esc_attr(add_query_arg('step', 1)) ?>"> 
     425<?php 
     426wp_nonce_field('custom-header'); 
     427if ( !empty($this->default_headers) ) { 
     428?> 
     429<p><?php _e('Use one of these cool headers.') ?></p> 
     430<?php 
     431    $this->show_default_header_selector(); 
     432?> 
     433    <input type="submit" class="button" name="resetheader" value="<?php esc_attr_e('Save Changes'); ?>" /> 
     434<?php 
     435} else { 
     436?> 
    422437<p><?php _e('This will restore the original header image and color. You will not be able to retrieve any customizations.') ?></p> 
    423 <form method="post" action="<?php echo esc_attr(add_query_arg('step', 1)) ?>"> 
    424 <?php wp_nonce_field('custom-header'); ?> 
    425438<input type="submit" class="button" name="resetheader" value="<?php esc_attr_e('Restore Original Header'); ?>" /> 
     439<?php } ?> 
    426440</form> 
    427441</div> 
Note: See TracChangeset for help on using the changeset viewer.