summaryrefslogtreecommitdiffstats
path: root/wp-admin/custom-header.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-01-30 17:46:07 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-01-30 17:46:07 +0000
commit006898584b668bc04aeff31f8180d048e6ca4071 (patch)
tree760b44188ab02261ba351de90e216e1b419fa87c /wp-admin/custom-header.php
parenteeae9d5c09399fa7cb89fe52d5676bf18fa61457 (diff)
downloadwordpress-mu-006898584b668bc04aeff31f8180d048e6ca4071.tar.gz
wordpress-mu-006898584b668bc04aeff31f8180d048e6ca4071.tar.xz
wordpress-mu-006898584b668bc04aeff31f8180d048e6ca4071.zip
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
Diffstat (limited to 'wp-admin/custom-header.php')
-rw-r--r--wp-admin/custom-header.php4
1 files changed, 2 insertions, 2 deletions
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;