add-a-hook
git-svn-id: https://develop.svn.wordpress.org/trunk@3754 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
cb4b90ebd8
commit
a3dddd0802
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user