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
This commit is contained in:
parent
dc68fb8278
commit
7720afe9a7
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue