From f176b759f84407025777f95fe01b7659a242efea Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 18 Dec 2024 00:25:29 +0000 Subject: [PATCH] Coding Standards: Fix WPCS issues in `get_avatar_data()`. Follow-up to [59532]. See #60638. Built from https://develop.svn.wordpress.org/trunk@59533 git-svn-id: http://core.svn.wordpress.org/trunk@58919 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/link-template.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index a375b0ee06..da57ebd64d 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -4353,7 +4353,7 @@ function is_avatar_comment_type( $comment_type ) { * * @since 4.2.0 * @since 6.7.0 Gravatar URLs always use HTTPS. - * @since 6.8.0 Gravatar URLs use the SHA-256 hashing algorithm. + * @since 6.8.0 Gravatar URLs use the SHA-256 hashing algorithm. * * @param mixed $id_or_email The avatar to retrieve. Accepts a user ID, Gravatar SHA-256 or MD5 hash, * user email, WP_User object, WP_Post object, or WP_Comment object. @@ -4500,7 +4500,7 @@ function get_avatar_data( $id_or_email, $args = null ) { if ( str_contains( $id_or_email, '@sha256.gravatar.com' ) ) { // SHA-256 hash. list( $email_hash ) = explode( '@', $id_or_email ); - } else if ( str_contains( $id_or_email, '@md5.gravatar.com' ) ) { + } elseif ( str_contains( $id_or_email, '@md5.gravatar.com' ) ) { // MD5 hash. list( $email_hash ) = explode( '@', $id_or_email ); } else { diff --git a/wp-includes/version.php b/wp-includes/version.php index e33a5c3c10..8c6c6716ff 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59532'; +$wp_version = '6.8-alpha-59533'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.