WordPress.org

Make WordPress Core

Ticket #3693: custom-header-patch.txt

File custom-header-patch.txt, 621 bytes (added by spikeyslam, 12 years ago)

patch file

Line 
1Index: wp-admin/custom-header.php
2===================================================================
3--- wp-admin/custom-header.php  (revision 4814)
4+++ wp-admin/custom-header.php  (working copy)
5@@ -223,7 +223,7 @@
6 
7                if ( $width == HEADER_IMAGE_WIDTH && $height == HEADER_IMAGE_HEIGHT ) {
8                        set_theme_mod('header_image', $url);
9-                       $header = apply_filters('wp_create_file_in_uploads', $header); // For replication
10+                       $header = apply_filters('wp_create_file_in_uploads', $file); // For replication
11                        return $this->finished();
12                } elseif ( $width > HEADER_IMAGE_WIDTH ) {
13                        $oitar = $width / HEADER_IMAGE_WIDTH;