WordPress.org

Make WordPress Core

Ticket #11855: custom-header.php.diff

File custom-header.php.diff, 1.4 KB (added by dphiffer, 8 years ago)
  • wp-admin/custom-header.php

     
    277277<?php screen_icon(); ?>
    278278<h2><?php _e('Your Header Image'); ?></h2>
    279279<p><?php _e('This is your header image. You can change the text color or upload and crop a new image.'); ?></p>
     280<?php
    280281
     282$custom_header_template = apply_filters('custom_header_template', '');
     283if ( $custom_header_template ) {
     284  include $custom_header_template;
     285} else {
     286
     287?>
    281288<div id="headimg" style="background-image: url(<?php esc_url(header_image()) ?>);">
    282289<h1><a onclick="return false;" href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>" id="name"><?php bloginfo('name'); ?></a></h1>
    283290<div id="desc"><?php bloginfo('description');?></div>
    284291</div>
     292<?php } ?>
    285293<?php if ( !defined( 'NO_HEADER_TEXT' ) ) { ?>
    286294<form method="post" action="<?php echo admin_url('themes.php?page=custom-header&amp;updated=true') ?>">
    287295<input type="button" class="button" value="<?php esc_attr_e('Hide Text'); ?>" onclick="hide_text()" id="hidetext" />
     
    455463         * @since unknown
    456464         */
    457465        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();
    466468        }
    467469
    468470        /**