Changeset 4819
- Timestamp:
- 01/27/2007 11:00:32 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.1/wp-admin/custom-header.php
r4673 r4819 224 224 if ( $width == HEADER_IMAGE_WIDTH && $height == HEADER_IMAGE_HEIGHT ) { 225 225 set_theme_mod('header_image', $url); 226 $header = apply_filters('wp_create_file_in_uploads', $ header); // For replication226 $header = apply_filters('wp_create_file_in_uploads', $file, $id); // For replication 227 227 return $this->finished(); 228 228 } elseif ( $width > HEADER_IMAGE_WIDTH ) { 229 229 $oitar = $width / HEADER_IMAGE_WIDTH; 230 230 $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 replication231 $image = apply_filters('wp_create_file_in_uploads', $image, $id); // For replication 232 232 233 233 $url = str_replace(basename($url), basename($image), $url);
Note: See TracChangeset
for help on using the changeset viewer.