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
This commit is contained in:
Sergey Biryukov 2024-12-18 00:25:29 +00:00
parent d427228024
commit f176b759f8
2 changed files with 3 additions and 3 deletions

View File

@ -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 {

View File

@ -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.