summaryrefslogtreecommitdiffstats
path: root/wp-admin/includes/upload.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-10-24 08:11:47 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-10-24 08:11:47 +0000
commitda1f2896cfe0e719c14375f95a4acb223eaf180f (patch)
treec14ff2539db1a33229128a46b21a929f291b5b78 /wp-admin/includes/upload.php
parentf99a729073e1e89827c4a5cb31e511d258cc6b98 (diff)
gettext the disable upload message
Remove mention of paid-upgrades.php, props momo360modena, fixes #470 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1127 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin/includes/upload.php')
-rw-r--r--wp-admin/includes/upload.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/wp-admin/includes/upload.php b/wp-admin/includes/upload.php
index c66feeb..3064b08 100644
--- a/wp-admin/includes/upload.php
+++ b/wp-admin/includes/upload.php
@@ -207,11 +207,11 @@ function wp_upload_tab_upload_action() {
switch ( $action ) :
case 'upload' :
if ( defined('DISABLE_UPLOADS') && constant('DISABLE_UPLOADS') ) {
- if ( defined('DISABLE_UPLOADS_MESSAGE') && constant('DISABLE_UPLOADS_MESSAGE') ) {
- return die(__(DISABLE_UPLOADS_MESSAGE));
- } else {
- return die(__('Sorry, uploads are temporarily disabled.'));
- }
+ if ( defined('DISABLE_UPLOADS_MESSAGE') && constant('DISABLE_UPLOADS_MESSAGE') ) {
+ wp_die(__(DISABLE_UPLOADS_MESSAGE));
+ } else {
+ wp_die(__('Sorry, uploads are temporarily disabled.'));
+ }
}
global $from_tab, $post_id, $style;
if ( !$from_tab )