From 758b3126d237b0ccd7236541a897167f81d3a1fa Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Sat, 27 Jan 2007 22:56:32 +0000 Subject: [PATCH] Pass correct var to wp_create_file_in_uploads hook. props spikeyslam. fixes #3693 git-svn-id: https://develop.svn.wordpress.org/trunk@4817 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/custom-header.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/custom-header.php b/wp-admin/custom-header.php index 8bdd83d073..458894cc90 100644 --- a/wp-admin/custom-header.php +++ b/wp-admin/custom-header.php @@ -223,7 +223,7 @@ Event.observe( window, 'load', hide_text ); if ( $width == HEADER_IMAGE_WIDTH && $height == HEADER_IMAGE_HEIGHT ) { set_theme_mod('header_image', $url); - $header = apply_filters('wp_create_file_in_uploads', $header); // For replication + $header = apply_filters('wp_create_file_in_uploads', $file, $id); // For replication return $this->finished(); } elseif ( $width > HEADER_IMAGE_WIDTH ) { $oitar = $width / HEADER_IMAGE_WIDTH;