From 7720afe9a79cbeb2345e377518f745a6ed7eb692 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 14 Mar 2021 17:01:12 +0000 Subject: [PATCH] Coding Standards: Remove some extra whitespace in `sanitize_comment_cookies()`. See #52627. Built from https://develop.svn.wordpress.org/trunk@50533 git-svn-id: http://core.svn.wordpress.org/trunk@50146 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment.php | 19 +++++++++++-------- wp-includes/version.php | 2 +- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/wp-includes/comment.php b/wp-includes/comment.php index 9539987ae7..94f60dfaef 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -615,9 +615,10 @@ function sanitize_comment_cookies() { * * @param string $author_cookie The comment author name cookie. */ - $comment_author = apply_filters( 'pre_comment_author_name', $_COOKIE[ 'comment_author_' . COOKIEHASH ] ); - $comment_author = wp_unslash( $comment_author ); - $comment_author = esc_attr( $comment_author ); + $comment_author = apply_filters( 'pre_comment_author_name', $_COOKIE[ 'comment_author_' . COOKIEHASH ] ); + $comment_author = wp_unslash( $comment_author ); + $comment_author = esc_attr( $comment_author ); + $_COOKIE[ 'comment_author_' . COOKIEHASH ] = $comment_author; } @@ -632,9 +633,10 @@ function sanitize_comment_cookies() { * * @param string $author_email_cookie The comment author email cookie. */ - $comment_author_email = apply_filters( 'pre_comment_author_email', $_COOKIE[ 'comment_author_email_' . COOKIEHASH ] ); - $comment_author_email = wp_unslash( $comment_author_email ); - $comment_author_email = esc_attr( $comment_author_email ); + $comment_author_email = apply_filters( 'pre_comment_author_email', $_COOKIE[ 'comment_author_email_' . COOKIEHASH ] ); + $comment_author_email = wp_unslash( $comment_author_email ); + $comment_author_email = esc_attr( $comment_author_email ); + $_COOKIE[ 'comment_author_email_' . COOKIEHASH ] = $comment_author_email; } @@ -649,8 +651,9 @@ function sanitize_comment_cookies() { * * @param string $author_url_cookie The comment author URL cookie. */ - $comment_author_url = apply_filters( 'pre_comment_author_url', $_COOKIE[ 'comment_author_url_' . COOKIEHASH ] ); - $comment_author_url = wp_unslash( $comment_author_url ); + $comment_author_url = apply_filters( 'pre_comment_author_url', $_COOKIE[ 'comment_author_url_' . COOKIEHASH ] ); + $comment_author_url = wp_unslash( $comment_author_url ); + $_COOKIE[ 'comment_author_url_' . COOKIEHASH ] = $comment_author_url; } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 7e3611590f..4c9edfe7b3 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-alpha-50532'; +$wp_version = '5.8-alpha-50533'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.