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
This commit is contained in:
Sergey Biryukov 2018-12-20 02:48:28 +00:00
parent 36f615eac6
commit 8e881be345

View File

@ -4052,7 +4052,7 @@ function get_avatar_data( $id_or_email, $args = null ) {
*/ */
$args = apply_filters( 'pre_get_avatar_data', $args, $id_or_email ); $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 */ /** This filter is documented in wp-includes/link-template.php */
return apply_filters( 'get_avatar_data', $args, $id_or_email ); return apply_filters( 'get_avatar_data', $args, $id_or_email );
} }