Changeset 13404 for trunk/wp-admin/custom-header.php
- Timestamp:
- 02/25/2010 07:32:10 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/custom-header.php
r13403 r13404 132 132 } 133 133 } 134 134 135 if ( isset($_POST['resetheader']) ) { 135 136 check_admin_referer('custom-header'); … … 138 139 139 140 if ( isset($_POST['default-header']) ) { 141 check_admin_referer('custom-header'); 140 142 $this->process_default_headers(); 141 143 if ( isset($this->default_headers[$_POST['default-header']]) ) … … 397 399 wp_nonce_field('custom-header'); 398 400 $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') . '" />'; 400 402 echo '</form>'; 401 403 echo '</div>'; … … 420 422 <div class="wrap"> 421 423 <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 426 wp_nonce_field('custom-header'); 427 if ( !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 ?> 422 437 <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'); ?>425 438 <input type="submit" class="button" name="resetheader" value="<?php esc_attr_e('Restore Original Header'); ?>" /> 439 <?php } ?> 426 440 </form> 427 441 </div>
Note: See TracChangeset
for help on using the changeset viewer.