add-a-hook

git-svn-id: http://svn.automattic.com/wordpress/trunk@3754 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2006-04-29 09:21:23 +00:00
parent 8753af280c
commit 2b49e833c7
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) {