From 8e881be345b3ca6a6121410ea313328d3c143593 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 20 Dec 2018 02:48:28 +0000 Subject: [PATCH] Users: Remove unnecessary `is_null()` call in `get_avatar_data()`. The `! is_null()` portion of the condition is unnecessary, because `isset()` checks whether a variable is set *and* is not null. Props JPry. Fixes #44927. git-svn-id: https://develop.svn.wordpress.org/trunk@44351 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/link-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/link-template.php b/src/wp-includes/link-template.php index a56c9635ee..cda3444af8 100644 --- a/src/wp-includes/link-template.php +++ b/src/wp-includes/link-template.php @@ -4052,7 +4052,7 @@ function get_avatar_data( $id_or_email, $args = null ) { */ $args = apply_filters( 'pre_get_avatar_data', $args, $id_or_email ); - if ( isset( $args['url'] ) && ! is_null( $args['url'] ) ) { + if ( isset( $args['url'] ) ) { /** This filter is documented in wp-includes/link-template.php */ return apply_filters( 'get_avatar_data', $args, $id_or_email ); }