WordPress.org

Make WordPress Core

Changeset 4819


Ignore:
Timestamp:
01/27/2007 11:00:32 PM (12 years ago)
Author:
markjaquith
Message:

Pass correct var to wp_create_file_in_uploads hook. props spikeyslam. fixes #3693

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/wp-admin/custom-header.php

    r4673 r4819  
    224224        if ( $width == HEADER_IMAGE_WIDTH && $height == HEADER_IMAGE_HEIGHT ) {
    225225            set_theme_mod('header_image', $url);
    226             $header = apply_filters('wp_create_file_in_uploads', $header); // For replication
     226            $header = apply_filters('wp_create_file_in_uploads', $file, $id); // For replication
    227227            return $this->finished();
    228228        } elseif ( $width > HEADER_IMAGE_WIDTH ) {
    229229            $oitar = $width / HEADER_IMAGE_WIDTH;
    230230            $image = wp_crop_image($file, 0, 0, $width, $height, HEADER_IMAGE_WIDTH, $height / $oitar, false, str_replace(basename($file), 'midsize-'.basename($file), $file));
    231             $image = apply_filters('wp_create_file_in_uploads', $image); // For replication
     231            $image = apply_filters('wp_create_file_in_uploads', $image, $id); // For replication
    232232
    233233            $url = str_replace(basename($url), basename($image), $url);
Note: See TracChangeset for help on using the changeset viewer.