~ubuntu-branches/debian/jessie/wordpress/jessie

« back to all changes in this revision

Viewing changes to wp-login.php

  • Committer: Package Import Robot
  • Author(s): Craig Small
  • Date: 2014-04-17 20:56:19 UTC
  • mfrom: (1.2.35)
  • Revision ID: package-import@ubuntu.com-20140417205619-nurbet6eho4yvwfv
Tags: 3.9+dfsg-1
* New upstream release
* 3.9 seems to handle different locations for plugins so the
  plugin directory handling patches have been cut back.

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
        <title><?php bloginfo('name'); ?> &rsaquo; <?php echo $title; ?></title>
69
69
        <?php
70
70
 
71
 
        wp_admin_css( 'wp-admin', true );
72
 
        wp_admin_css( 'colors-fresh', true );
73
 
        wp_admin_css( 'ie', true );
 
71
        wp_admin_css( 'login', true );
74
72
 
75
73
        // Remove all stored post data on logging out.
76
74
        // This could be added by add_action('login_head'...) like wp_shake_js()
98
96
                $login_header_url   = network_home_url();
99
97
                $login_header_title = get_current_site()->site_name;
100
98
        } else {
101
 
                $login_header_url   = __( 'http://wordpress.org/' );
 
99
                $login_header_url   = __( 'https://wordpress.org/' );
102
100
                $login_header_title = __( 'Powered by WordPress' );
103
101
        }
104
102
 
133
131
                if ( 'success' ===  $interim_login )
134
132
                        $classes[] = 'interim-login-success';
135
133
        }
 
134
        $classes[] =' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) );
136
135
 
137
136
        /**
138
137
         * Filter the login page body classes.
390
389
         */
391
390
        $message = apply_filters( 'retrieve_password_message', $message, $key );
392
391
 
393
 
        if ( $message && !wp_mail($user_email, $title, $message) )
 
392
        if ( $message && !wp_mail( $user_email, wp_specialchars_decode( $title ), $message ) )
394
393
                wp_die( __('The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function.') );
395
394
 
396
395
        return true;
614
613
        </p>
615
614
 
616
615
        <div id="pass-strength-result" class="hide-if-no-js"><?php _e('Strength indicator'); ?></div>
617
 
        <p class="description indicator-hint"><?php _e('Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ &amp; ).'); ?></p>
 
616
        <p class="description indicator-hint"><?php _e('Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers, and symbols like ! " ? $ % ^ &amp; ).'); ?></p>
618
617
 
619
618
        <br class="clear" />
 
619
 
 
620
        <?php
 
621
        /**
 
622
         * Fires following the 'Strength indicator' meter in the user password reset form.
 
623
         *
 
624
         * @since 3.9.0
 
625
         *
 
626
         * @param WP_User $user User object of the user whose password is being reset.
 
627
         */
 
628
        do_action( 'resetpass_form', $user );
 
629
        ?>
620
630
        <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e('Reset Password'); ?>" /></p>
621
631
</form>
622
632
 
746
756
        if ( !$secure_cookie && is_ssl() && force_ssl_login() && !force_ssl_admin() && ( 0 !== strpos($redirect_to, 'https') ) && ( 0 === strpos($redirect_to, 'http') ) )
747
757
                $secure_cookie = false;
748
758
 
749
 
        // If cookies are disabled we can't log in even with a valid user+pass
750
 
        if ( isset($_POST['testcookie']) && empty($_COOKIE[TEST_COOKIE]) )
751
 
                $user = new WP_Error('test_cookie', __("<strong>ERROR</strong>: Cookies are blocked or not supported by your browser. You must <a href='http://www.google.com/cookies.html'>enable cookies</a> to use WordPress."));
752
 
        else
753
 
                $user = wp_signon('', $secure_cookie);
 
759
        $user = wp_signon( '', $secure_cookie );
 
760
 
 
761
        if ( empty( $_COOKIE[ LOGGED_IN_COOKIE ] ) ) {
 
762
                if ( headers_sent() ) {
 
763
                        $user = new WP_Error( 'test_cookie', sprintf( __( '<strong>ERROR</strong>: Cookies are blocked due to unexpected output. For help, please see <a href="%1$s">this documentation</a> or try the <a href="%2$s">support forums</a>.' ),
 
764
                                __( 'http://codex.wordpress.org/Cookies' ), __( 'https://wordpress.org/support/' ) ) );
 
765
                } elseif ( isset( $_POST['testcookie'] ) && empty( $_COOKIE[ TEST_COOKIE ] ) ) {
 
766
                        // If cookies are disabled we can't log in even with a valid user+pass
 
767
                        $user = new WP_Error( 'test_cookie', sprintf( __( '<strong>ERROR</strong>: Cookies are blocked or not supported by your browser. You must <a href="%s">enable cookies</a> to use WordPress.' ),
 
768
                                __( 'http://codex.wordpress.org/Cookies' ) ) );
 
769
                }
 
770
        }
754
771
 
755
772
        $requested_redirect_to = isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '';
756
773
        /**