Changeset 4819

Show
Ignore:
Timestamp:
01/27/07 23:00:32 (1 year ago)
Author:
markjaquith
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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);