X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/fa11948979fd6a4ea5705dc613b239699a459db3..85ad385665744d9cc3bcd939906309be7268edb3:/wp-login.php diff --git a/wp-login.php b/wp-login.php index 042f29a8..268d2b34 100644 --- a/wp-login.php +++ b/wp-login.php @@ -30,8 +30,8 @@ if ( force_ssl_admin() && ! is_ssl() ) { * @param string $wp_error Optional. The error to pass. Default empty. * @param WP_Error $wp_error Optional. WordPress Error Object */ -function login_header($title = 'Log In', $message = '', $wp_error = '') { - global $error, $interim_login, $current_site, $action; +function login_header( $title = 'Log In', $message = '', $wp_error = '' ) { + global $error, $interim_login, $action; // Don't index any of these forms add_action( 'login_head', 'wp_no_robots' ); @@ -57,7 +57,12 @@ function login_header($title = 'Log In', $message = '', $wp_error = '') { add_action( 'login_head', 'wp_shake_js', 12 ); ?> - > + + + > + <?php bloginfo('name'); ?> › <?php echo $title; ?> @@ -65,6 +70,7 @@ function login_header($title = 'Log In', $message = '', $wp_error = '') { wp_admin_css( 'wp-admin', true ); wp_admin_css( 'colors-fresh', true ); + wp_admin_css( 'ie', true ); // Remove all stored post data on logging out. // This could be added by add_action('login_head'...) like wp_shake_js() @@ -90,7 +96,7 @@ function login_header($title = 'Log In', $message = '', $wp_error = '') { if ( is_multisite() ) { $login_header_url = network_home_url(); - $login_header_title = $current_site->site_name; + $login_header_title = get_current_site()->site_name; } else { $login_header_url = __( 'http://wordpress.org/' ); $login_header_title = __( 'Powered by WordPress' ); @@ -262,7 +268,7 @@ function wp_login_viewport_meta() { * @return bool|WP_Error True: when finish. WP_Error on error */ function retrieve_password() { - global $wpdb, $current_site, $wp_hasher; + global $wpdb, $wp_hasher; $errors = new WP_Error(); @@ -299,8 +305,8 @@ function retrieve_password() { /** * Fires before a new password is retrieved. * - * @since 1.5.2 - * @deprecated 1.5.2 Misspelled. Use 'retrieve_password' hook instead. + * @since 1.5.0 + * @deprecated 1.5.1 Misspelled. Use 'retrieve_password' hook instead. * * @param string $user_login The user login name. */ @@ -308,7 +314,7 @@ function retrieve_password() { /** * Fires before a new password is retrieved. * - * @since 1.5.2 + * @since 1.5.1 * * @param string $user_login The user login name. */ @@ -508,7 +514,7 @@ case 'retrievepassword' : /** * Fires before the lost password form. * - * @since 1.5.2 + * @since 1.5.1 */ do_action( 'lost_password' ); @@ -542,7 +548,7 @@ if ( get_option( 'users_can_register' ) ) : /** * Filter the registration URL below the login form. * - * @since 1.5.2 + * @since 1.5.0 * * @param string $registration_url Registration URL. */