summaryrefslogtreecommitdiffstats
path: root/wp-admin/includes/file.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-10-26 15:16:08 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-10-26 15:16:08 +0000
commitb6993d5766a5630574951bf4e62c7e55ae92c090 (patch)
tree4a854c8e2a452a506f3bf1e7bfb69826cceee65b /wp-admin/includes/file.php
parent5c276aac16e4d4c7ba2d711dfa20c15f83d8f331 (diff)
downloadwordpress-mu-b6993d5766a5630574951bf4e62c7e55ae92c090.tar.gz
wordpress-mu-b6993d5766a5630574951bf4e62c7e55ae92c090.tar.xz
wordpress-mu-b6993d5766a5630574951bf4e62c7e55ae92c090.zip
Added (back in?) "wp_handle_upload_prefilter" filter to filter uploads before they go in blog's directory, fixes #478
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1133 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin/includes/file.php')
-rw-r--r--wp-admin/includes/file.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php
index 2d58852..25d9c26 100644
--- a/wp-admin/includes/file.php
+++ b/wp-admin/includes/file.php
@@ -88,6 +88,8 @@ function wp_handle_upload( &$file, $overrides = false ) {
}
}
+ $file = apply_filters( 'wp_handle_upload_prefilter', $file );
+
// You may define your own function and pass the name in $overrides['upload_error_handler']
$upload_error_handler = 'wp_handle_upload_error';