add-a-hook

git-svn-id: https://develop.svn.wordpress.org/trunk@3754 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2006-04-29 09:21:23 +00:00
parent cb4b90ebd8
commit a3dddd0802
1 changed files with 3 additions and 1 deletions

View File

@ -1890,8 +1890,10 @@ function wp_handle_upload(&$file, $overrides = false) {
// Compute the URL
$url = $uploads['url'] . "/$filename";
$return = apply_filters( 'wp_handle_upload', array('file' => $new_file, 'url' => $url, 'type' => $type) );
return array('file' => $new_file, 'url' => $url, 'type' => $type);
return $return;
}
function wp_shrink_dimensions($width, $height, $wmax = 128, $hmax = 96) {