diff --git a/wp-login.php b/wp-login.php index 261b2551f0..d0580bb7f4 100644 --- a/wp-login.php +++ b/wp-login.php @@ -69,9 +69,11 @@ function login_header( $title = 'Log In', $message = '', $wp_error = '' ) { wp_admin_css( 'login', true ); - // Remove all stored post data on logging out. - // This could be added by add_action('login_head'...) like wp_shake_js() - // but maybe better if it's not removable by plugins + /* + * Remove all stored post data on logging out. + * This could be added by add_action('login_head'...) like wp_shake_js(), + * but maybe better if it's not removable by plugins + */ if ( 'loggedout' == $wp_error->get_error_code() ) { ?> @@ -296,7 +298,7 @@ function retrieve_password() { return $errors; } - // redefining user_login ensures we return the right case in the email + // Redefining user_login ensures we return the right case in the email. $user_login = $user_data->user_login; $user_email = $user_data->user_email; @@ -309,6 +311,7 @@ function retrieve_password() { * @param string $user_login The user login name. */ do_action( 'retreive_password', $user_login ); + /** * Fires before a new password is retrieved. * @@ -364,8 +367,10 @@ function retrieve_password() { if ( is_multisite() ) $blogname = $GLOBALS['current_site']->site_name; else - // The blogname option is escaped with esc_html on the way into the database in sanitize_option - // we want to reverse this for the plain text arena of emails. + /* + * The blogname option is escaped with esc_html on the way into the database + * in sanitize_option we want to reverse this for the plain text arena of emails. + */ $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES); $title = sprintf( __('[%s] Password Reset'), $blogname ); diff --git a/wp-mail.php b/wp-mail.php index 550c28cac5..6775de8a27 100644 --- a/wp-mail.php +++ b/wp-mail.php @@ -68,7 +68,7 @@ for ( $i = 1; $i <= $count; $i++ ) { $author_found = false; $dmonths = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); foreach ($message as $line) { - // body signal + // Body signal. if ( strlen($line) < 3 ) $bodysignal = true; if ( $bodysignal ) { @@ -108,8 +108,10 @@ for ( $i = 1; $i <= $count; $i++ ) { $subject = $subject[0]; } - // Set the author using the email address (From or Reply-To, the last used) - // otherwise use the site admin + /* + * Set the author using the email address (From or Reply-To, the last used) + * otherwise use the site admin. + */ if ( ! $author_found && preg_match( '/^(From|Reply-To): /', $line ) ) { if ( preg_match('|[a-z0-9_.-]+@[a-z0-9_.-]+(?!.*<)|i', $line, $matches) ) $author = $matches[0]; @@ -171,7 +173,8 @@ for ( $i = 1; $i <= $count; $i++ ) { if ( $content_type == 'multipart/alternative' ) { $content = explode('--'.$boundary, $content); $content = $content[2]; - // match case-insensitive content-transfer-encoding + + // Match case-insensitive content-transfer-encoding. if ( preg_match( '/Content-Transfer-Encoding: quoted-printable/i', $content, $delim) ) { $content = explode($delim[0], $content); $content = $content[1]; diff --git a/wp-signup.php b/wp-signup.php index 6a4e5b6a46..94722e34c0 100644 --- a/wp-signup.php +++ b/wp-signup.php @@ -316,7 +316,7 @@ function validate_another_blog_signup() { $result = validate_blog_form(); - // extracted values set/overwrite globals + // Extracted values set/overwrite globals. $domain = $result['domain']; $path = $result['path']; $blogname = $result['blogname'];