From 006898584b668bc04aeff31f8180d048e6ca4071 Mon Sep 17 00:00:00 2001 From: donncha Date: Tue, 30 Jan 2007 17:46:07 +0000 Subject: WP Merge to rev 3834 and reverted to novalueindb option code git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@873 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-admin/custom-header.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wp-admin/custom-header.php') diff --git a/wp-admin/custom-header.php b/wp-admin/custom-header.php index 8bdd83d..8b0ad34 100644 --- a/wp-admin/custom-header.php +++ b/wp-admin/custom-header.php @@ -223,12 +223,12 @@ 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; $image = wp_crop_image($file, 0, 0, $width, $height, HEADER_IMAGE_WIDTH, $height / $oitar, false, str_replace(basename($file), 'midsize-'.basename($file), $file)); - $image = apply_filters('wp_create_file_in_uploads', $image); // For replication + $image = apply_filters('wp_create_file_in_uploads', $image, $id); // For replication $url = str_replace(basename($url), basename($image), $url); $width = $width / $oitar; -- cgit