Ticket #28931: wp-root-28931.diff
File wp-root-28931.diff, 3.6 KB (added by , 7 years ago) |
---|
-
src/wp-login.php
69 69 70 70 wp_admin_css( 'login', true ); 71 71 72 // Remove all stored post data on logging out. 73 // This could be added by add_action('login_head'...) like wp_shake_js() 74 // but maybe better if it's not removable by plugins 72 /* 73 * Remove all stored post data on logging out. 74 * This could be added by add_action('login_head'...) like wp_shake_js(), 75 * but maybe better if it's not removable by plugins 76 */ 75 77 if ( 'loggedout' == $wp_error->get_error_code() ) { 76 78 ?> 77 79 <script>if("sessionStorage" in window){try{for(var key in sessionStorage){if(key.indexOf("wp-autosave-")!=-1){sessionStorage.removeItem(key)}}}catch(e){}};</script> … … 296 298 return $errors; 297 299 } 298 300 299 // redefining user_login ensures we return the right case in the email301 // Redefining user_login ensures we return the right case in the email. 300 302 $user_login = $user_data->user_login; 301 303 $user_email = $user_data->user_email; 302 304 … … 309 311 * @param string $user_login The user login name. 310 312 */ 311 313 do_action( 'retreive_password', $user_login ); 314 312 315 /** 313 316 * Fires before a new password is retrieved. 314 317 * … … 364 367 if ( is_multisite() ) 365 368 $blogname = $GLOBALS['current_site']->site_name; 366 369 else 367 // The blogname option is escaped with esc_html on the way into the database in sanitize_option 368 // we want to reverse this for the plain text arena of emails. 370 /* 371 * The blogname option is escaped with esc_html on the way into the database 372 * in sanitize_option we want to reverse this for the plain text arena of emails. 373 */ 369 374 $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES); 370 375 371 376 $title = sprintf( __('[%s] Password Reset'), $blogname ); -
src/wp-mail.php
68 68 $author_found = false; 69 69 $dmonths = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); 70 70 foreach ($message as $line) { 71 // body signal71 // Body signal. 72 72 if ( strlen($line) < 3 ) 73 73 $bodysignal = true; 74 74 if ( $bodysignal ) { … … 108 108 $subject = $subject[0]; 109 109 } 110 110 111 // Set the author using the email address (From or Reply-To, the last used) 112 // otherwise use the site admin 111 /* 112 * Set the author using the email address (From or Reply-To, the last used) 113 * otherwise use the site admin. 114 */ 113 115 if ( ! $author_found && preg_match( '/^(From|Reply-To): /', $line ) ) { 114 116 if ( preg_match('|[a-z0-9_.-]+@[a-z0-9_.-]+(?!.*<)|i', $line, $matches) ) 115 117 $author = $matches[0]; … … 171 173 if ( $content_type == 'multipart/alternative' ) { 172 174 $content = explode('--'.$boundary, $content); 173 175 $content = $content[2]; 174 // match case-insensitive content-transfer-encoding 176 177 // Match case-insensitive content-transfer-encoding. 175 178 if ( preg_match( '/Content-Transfer-Encoding: quoted-printable/i', $content, $delim) ) { 176 179 $content = explode($delim[0], $content); 177 180 $content = $content[1]; -
src/wp-signup.php
316 316 317 317 $result = validate_blog_form(); 318 318 319 // extracted values set/overwrite globals319 // Extracted values set/overwrite globals. 320 320 $domain = $result['domain']; 321 321 $path = $result['path']; 322 322 $blogname = $result['blogname'];