WordPress 4.0
[autoinstalls/wordpress.git] / wp-admin / includes / ms.php
index 3a4d1907bc6a62183b3f872e692ad022df698cf6..84f61670bf8c2368be9640b56289b22ab72a2d5e 100644 (file)
@@ -211,7 +211,6 @@ function wpmu_delete_user( $id ) {
 }
 
 function update_option_new_admin_email( $old_value, $value ) {
-       $email = get_option( 'admin_email' );
        if ( $value == get_option( 'admin_email' ) || !is_email( $value ) )
                return;
 
@@ -670,10 +669,10 @@ function choose_primary_blog() {
                <tr>
                        <th scope="row" colspan="2" class="th-full">
                                <?php
-                               $signup_url = network_site_url( 'wp-signup.php' );
                                /** This filter is documented in wp-login.php */
+                               $sign_up_url = apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) );
                                ?>
-                               <a href="<?php echo apply_filters( 'wp_signup_location', $signup_url ); ?>"><?php _e( 'Create a New Site' ); ?></a>
+                               <a href="<?php echo esc_url( $sign_up_url ); ?>"><?php _e( 'Create a New Site' ); ?></a>
                        </th>
                </tr>
        <?php endif; ?>