add-a-hook
git-svn-id: http://svn.automattic.com/wordpress/trunk@3754 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8753af280c
commit
2b49e833c7
|
@ -1891,7 +1891,9 @@ function wp_handle_upload(&$file, $overrides = false) {
|
|||
// Compute the URL
|
||||
$url = $uploads['url'] . "/$filename";
|
||||
|
||||
return array('file' => $new_file, 'url' => $url, 'type' => $type);
|
||||
$return = apply_filters( 'wp_handle_upload', 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