From 87ac457a9eb1e74bd7d45852e719e83b1b76cebc Mon Sep 17 00:00:00 2001 From: donncha Date: Thu, 22 Mar 2007 12:53:06 +0000 Subject: No need for these globals (fixes #285) Skip blank domains in banned email domains check git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@930 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-includes/wpmu-functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'wp-includes/wpmu-functions.php') diff --git a/wp-includes/wpmu-functions.php b/wp-includes/wpmu-functions.php index 1ab7b1d..6050025 100644 --- a/wp-includes/wpmu-functions.php +++ b/wp-includes/wpmu-functions.php @@ -27,7 +27,6 @@ add_action('publish_post', 'wpmu_update_blogs_date'); function wpmu_checkAvailableSpace($action) { // Using the action. // Set the action to 'not-writable' to block the upload - global $wpblog, $blog_id; // Default space allowed is 10 MB $spaceAllowed = get_site_option( "blog_upload_space" ); @@ -821,6 +820,8 @@ function is_email_address_unsafe( $user_email ) { if ( is_array( $banned_names ) && empty( $banned_names ) == false ) { $email_domain = strtolower( substr( $user_email, 1 + strpos( $user_email, '@' ) ) ); foreach( $banned_names as $banned_domain ) { + if( $banned_domain == '' ) + continue; if ( strstr( $email_domain, $banned_domain ) || ( -- cgit