Ticket #11855: custom-header.php.diff
| File custom-header.php.diff, 1.4 KB (added by dphiffer, 3 years ago) |
|---|
-
wp-admin/custom-header.php
277 277 <?php screen_icon(); ?> 278 278 <h2><?php _e('Your Header Image'); ?></h2> 279 279 <p><?php _e('This is your header image. You can change the text color or upload and crop a new image.'); ?></p> 280 <?php 280 281 282 $custom_header_template = apply_filters('custom_header_template', ''); 283 if ( $custom_header_template ) { 284 include $custom_header_template; 285 } else { 286 287 ?> 281 288 <div id="headimg" style="background-image: url(<?php esc_url(header_image()) ?>);"> 282 289 <h1><a onclick="return false;" href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>" id="name"><?php bloginfo('name'); ?></a></h1> 283 290 <div id="desc"><?php bloginfo('description');?></div> 284 291 </div> 292 <?php } ?> 285 293 <?php if ( !defined( 'NO_HEADER_TEXT' ) ) { ?> 286 294 <form method="post" action="<?php echo admin_url('themes.php?page=custom-header&updated=true') ?>"> 287 295 <input type="button" class="button" value="<?php esc_attr_e('Hide Text'); ?>" onclick="hide_text()" id="hidetext" /> … … 455 463 * @since unknown 456 464 */ 457 465 function finished() { 458 ?> 459 <div class="wrap"> 460 <h2><?php _e('Header complete!'); ?></h2> 461 462 <p><?php _e('Visit your site and you should see the new header now.'); ?></p> 463 464 </div> 465 <?php 466 $_GET['updated'] = 1; 467 $this->step_1(); 466 468 } 467 469 468 470 /**
