summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-content
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-09-08 11:10:46 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-09-08 11:10:46 +0000
commit67c5a823a409e87a00f9592497e115ea0c6830a4 (patch)
tree791de2ca095c9aac9d3937cb57ecbe299c5ab759 /wp-inst/wp-content
parent5787e9576fb013c112038a00772d121a6ff2851f (diff)
downloadwordpress-mu-67c5a823a409e87a00f9592497e115ea0c6830a4.tar.gz
wordpress-mu-67c5a823a409e87a00f9592497e115ea0c6830a4.tar.xz
wordpress-mu-67c5a823a409e87a00f9592497e115ea0c6830a4.zip
Added option to disable invite checking on registration
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@307 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-content')
-rw-r--r--wp-inst/wp-content/mu-plugins/invites.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/wp-inst/wp-content/mu-plugins/invites.php b/wp-inst/wp-content/mu-plugins/invites.php
index c4ce57b..4f15c04 100644
--- a/wp-inst/wp-content/mu-plugins/invites.php
+++ b/wp-inst/wp-content/mu-plugins/invites.php
@@ -1,5 +1,4 @@
<?php
-return; // disable by default.
if( substr( $_SERVER[ 'PHP_SELF' ], -14 ) == 'wpmu-admin.php' || substr( $_SERVER[ 'PHP_SELF' ], -11 ) == 'invites.php' ) {
if( false == get_site_option( "invites_default_message" ) ) {
$msg =
@@ -47,7 +46,9 @@ function invites_check_user_hash() {
}
}
}
-add_action('newblogheader', 'invites_check_user_hash');
+if( get_site_option( "check_reg_for_invite" ) == 'yes' ) {
+ add_action('newblogheader', 'invites_check_user_hash');
+}
function invites_admin_send_email() {
global $wpdb;