Skip to content

Commit

Permalink
Merge pull request #21 from creativecommons/dev
Browse files Browse the repository at this point in the history
Add redirection filter when site does not exists
  • Loading branch information
hugosolar authored Jun 10, 2019
2 parents 4ffab3f + 107aea3 commit cd0b22d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion inc/site.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,10 @@ static function get_sidebar_class($sidebar) {
return ' '.$settings[$sidebar.'-background'];
}
}
}
static function prevent_multisite_signup() {
wp_redirect('https://network.creativecommons.org', 301);
die();
}
}
//Redirect to CCGN when website does not exists
add_action( 'before_signup_header', array( 'front', 'prevent_multisite_signup' ) );

0 comments on commit cd0b22d

Please sign in to comment.