Skip to content

Commit 2238011

Browse files
Coding Standards: Fix WPCS issues in get_avatar_data().
Follow-up to [59532]. See #60638. git-svn-id: https://develop.svn.wordpress.org/trunk@59533 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 68c4efc commit 2238011

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wp-includes/link-template.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4353,7 +4353,7 @@ function is_avatar_comment_type( $comment_type ) {
43534353
*
43544354
* @since 4.2.0
43554355
* @since 6.7.0 Gravatar URLs always use HTTPS.
4356-
* @since 6.8.0 Gravatar URLs use the SHA-256 hashing algorithm.
4356+
* @since 6.8.0 Gravatar URLs use the SHA-256 hashing algorithm.
43574357
*
43584358
* @param mixed $id_or_email The avatar to retrieve. Accepts a user ID, Gravatar SHA-256 or MD5 hash,
43594359
* 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 ) {
45004500
if ( str_contains( $id_or_email, '@sha256.gravatar.com' ) ) {
45014501
// SHA-256 hash.
45024502
list( $email_hash ) = explode( '@', $id_or_email );
4503-
} else if ( str_contains( $id_or_email, '@md5.gravatar.com' ) ) {
4503+
} elseif ( str_contains( $id_or_email, '@md5.gravatar.com' ) ) {
45044504
// MD5 hash.
45054505
list( $email_hash ) = explode( '@', $id_or_email );
45064506
} else {

0 commit comments

Comments
 (0)