X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/80b7979fccf09a75af3f4c111fa27060ae6dbf85..refs/tags/wordpress-4.4.2-scripts:/wp-activate.php diff --git a/wp-activate.php b/wp-activate.php index d470772f..ea6a1ad8 100644 --- a/wp-activate.php +++ b/wp-activate.php @@ -1,26 +1,56 @@ cache_enabled = false; +// Fix for page title +$wp_query->is_404 = false; + +/** + * Fires before the Site Activation page is loaded. + * + * @since 3.0.0 + */ do_action( 'activate_header' ); +/** + * Adds an action hook specific to this page that fires on wp_head + * + * @since MU + */ function do_activate_header() { - do_action( 'activate_wp_head' ); + /** + * Fires before the Site Activation page is loaded, but on the wp_head action. + * + * @since 3.0.0 + */ + do_action( 'activate_wp_head' ); } add_action( 'wp_head', 'do_activate_header' ); +/** + * Loads styles specific to this page. + * + * @since MU + */ function wpmu_activate_stylesheet() { ?> -
+
+

@@ -54,7 +85,7 @@ get_header(); get_error_code() || 'blog_taken' == $result->get_error_code() ) { $signup = $result->get_error_data(); @@ -75,28 +106,32 @@ get_header(); echo '

'.$result->get_error_message().'

'; } } else { - extract($result); - $url = get_blogaddress_by_id( (int) $blog_id); - $user = new WP_User( (int) $user_id); + $url = isset( $result['blog_id'] ) ? get_blogaddress_by_id( (int) $result['blog_id'] ) : ''; + $user = get_userdata( (int) $result['user_id'] ); ?>

user_login ?>

-

+

- -

View your site or Log in'), $url, $url . 'wp-login.php' ); ?>

+ +

View your site or Log in' ), $url, esc_url( $login_url ) ); ?>

Log in or go back to the homepage.' ), network_site_url('wp-login.php', 'login'), network_home_url() ); ?>

+
- \ No newline at end of file +