Skip to content

Commit

Permalink
Redirect wp-activate.php to register when not multisite, See #11644
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.automattic.com/wordpress/trunk@12857 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
wpmuguru committed Jan 26, 2010
1 parent 0758218 commit 70940e9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions wp-activate.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
require( dirname(__FILE__) . '/wp-load.php' );

require( 'wp-blog-header.php' );

if ( !is_multisite() ) {
wp_redirect( get_option( 'siteurl' ) . "/wp-login.php?action=register" );
die();
}

require_once( ABSPATH . WPINC . '/registration.php');

if ( is_object( $wp_object_cache ) )
Expand Down

0 comments on commit 70940e9

Please sign in to comment.