diff options
Diffstat (limited to 'wp-admin/custom-header.php')
-rw-r--r-- | wp-admin/custom-header.php | 4 |
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; |