diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-10-22 16:42:10 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-10-22 16:42:10 +0000 |
| commit | f1ddafe372c7c84d2251a3ea78496cf76f29c737 (patch) | |
| tree | cc2c81aa11168600271cb2d179b96e439486f09f /wp-admin/includes/mu.php | |
| parent | 71c14576f335e1ad1e86b6a0b97603fcd5265a2b (diff) | |
Added "DISABLE_UPLOADS" and "DISABLE_UPLOADS_MESSAGE"
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1119 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin/includes/mu.php')
| -rw-r--r-- | wp-admin/includes/mu.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/wp-admin/includes/mu.php b/wp-admin/includes/mu.php index 7cdbdec..297f10e 100644 --- a/wp-admin/includes/mu.php +++ b/wp-admin/includes/mu.php @@ -1,4 +1,5 @@ <?php + function wpmu_delete_blog($blog_id, $drop = false) { global $wpdb, $wpmuBaseTablePrefix; @@ -327,9 +328,10 @@ function wpmu_checkAvailableSpace() { $size = $size / 1024 / 1024; if( ($spaceAllowed - $size) <= 0 ) { - wp_die( __( 'Sorry, you need to delete some files before you can upload any more.' ) ); + define( 'DISABLE_UPLOADS', true ); + define( 'DISABLE_UPLOADS_MESSAGE', 'Sorry, you must delete files before you can upload any more, or <a target="_new" href="paid-upgrades.php">buy more space</a>' ); } } -add_filter('upload_files_upload','wpmu_checkAvailableSpace'); +add_action('upload_files_upload','wpmu_checkAvailableSpace'); ?> |
