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
|
@ -1890,8 +1890,10 @@ function wp_handle_upload(&$file, $overrides = false) {
|
||||||
|
|
||||||
// Compute the URL
|
// Compute the URL
|
||||||
$url = $uploads['url'] . "/$filename";
|
$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) {
|
function wp_shrink_dimensions($width, $height, $wmax = 128, $hmax = 96) {
|
||||||
|
|
Loading…
Reference in New Issue