WordPress.org

Make WordPress Core

Changeset 4817


Ignore:
Timestamp:
01/27/2007 10:56: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
  • trunk/wp-admin/custom-header.php

    r4673 r4817  
    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 ) {
Note: See TracChangeset for help on using the changeset viewer.