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
This commit is contained in:
Mark Jaquith 2007-01-27 22:56:32 +00:00
parent e0eb6c809a
commit 758b3126d2
1 changed files with 1 additions and 1 deletions

View File

@ -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;