Changeset 43458
- Timestamp:
- 07/16/2018 02:13:11 PM (6 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
-
branches/4.9/src/wp-login.php
r43233 r43458 29 29 * Default 'Log In'. 30 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.31 * @param WP_Error $wp_error Optional. The error to pass. Default is a WP_Error instance. 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 … … 39 39 add_action( 'login_head', 'wp_login_viewport_meta' ); 40 40 41 if ( empty($wp_error) )41 if ( ! is_wp_error( $wp_error ) ) { 42 42 $wp_error = new WP_Error(); 43 } 43 44 44 45 // Shake it!
Note: See TracChangeset
for help on using the changeset viewer.