summaryrefslogtreecommitdiffstats
path: root/wp-signup.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-10-22 14:12:54 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-10-22 14:12:54 +0000
commit1aa677d9a12d74ae0b531e508486af1ad1d7ee14 (patch)
tree6e4d4ad3ff3b53d9ff3a32d5cf40df6d4ea72ea9 /wp-signup.php
parentdf0291bf93ac47a18e7cec154ff68f1410e94ab8 (diff)
downloadwordpress-mu-1aa677d9a12d74ae0b531e508486af1ad1d7ee14.zip
wordpress-mu-1aa677d9a12d74ae0b531e508486af1ad1d7ee14.tar.gz
wordpress-mu-1aa677d9a12d74ae0b531e508486af1ad1d7ee14.tar.xz
Add 'validate_user_signup' and 'validate_blog_signup' hooks, fixes #776
git-svn-id: http://svn.automattic.com/wordpress-mu/branches/2.6@1505 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-signup.php')
-rw-r--r--wp-signup.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/wp-signup.php b/wp-signup.php
index 602fa61..4deafcb 100644
--- a/wp-signup.php
+++ b/wp-signup.php
@@ -386,12 +386,16 @@ if( $active_signup == "none" ) {
switch ($_POST['stage']) {
case 'validate-user-signup' :
+ do_action( "validate_user_signup" );
+
if( $active_signup == 'all' || $_POST[ 'signup_for' ] == 'blog' && $active_signup == 'blog' || $_POST[ 'signup_for' ] == 'user' && $active_signup == 'user' )
validate_user_signup();
else
_e( "User registration has been disabled." );
break;
case 'validate-blog-signup':
+ do_action( "validate_blog_signup" );
+
if( $active_signup == 'all' || $active_signup == 'blog' )
validate_blog_signup();
else