Oops, two locations where this filter is called. fixes #3693
git-svn-id: https://develop.svn.wordpress.org/trunk@4818 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
758b3126d2
commit
bae1d18310
@ -228,7 +228,7 @@ Event.observe( window, 'load', hide_text );
|
||||
} 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;
|
||||
|
Loading…
Reference in New Issue
Block a user