IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
25 | 25 | /** |
26 | 26 | * Output the login page header. |
27 | 27 | * |
28 | | * @param string $title Optional. WordPress login Page title to display in the `<title>` element. |
29 | | * Default 'Log In'. |
30 | | * @param string $message Optional. Message to display in header. Default empty. |
31 | | * @param WP_Error $wp_error Optional. The error to pass. Default empty. |
| 28 | * @param string $title Optional. WordPress login Page title to display in the `<title>` element. |
| 29 | * Default 'Log In'. |
| 30 | * @param string $message Optional. Message to display in header. Default empty. |
| 31 | * @param string|WP_Error $wp_error Optional. The error to pass. Default null. |
32 | 32 | */ |
33 | | function login_header( $title = 'Log In', $message = '', $wp_error = '' ) { |
| 33 | function login_header( $title = 'Log In', $message = '', $wp_error = null ) { |
34 | 34 | global $error, $interim_login, $action; |
35 | 35 | |
36 | 36 | // Don't index any of these forms |
… |
… |
|
38 | 38 | |
39 | 39 | add_action( 'login_head', 'wp_login_viewport_meta' ); |
40 | 40 | |
| 41 | if ( empty( $wp_error ) ) { |
41 | 42 | if ( ! is_wp_error( $wp_error ) ) { |
42 | 43 | $wp_error = new WP_Error(); |
43 | 44 | } |
44 | 45 | |
| 46 | |
| 47 | |
45 | 48 | // Shake it! |
46 | 49 | $shake_error_codes = array( 'empty_password', 'empty_email', 'invalid_email', 'invalidcombo', 'empty_username', 'invalid_username', 'incorrect_password' ); |
47 | 50 | /** |