From 930079c8a518ea161c19a02d7dc9baa36a528f41 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 20 Dec 2018 02:49:48 +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. Built from https://develop.svn.wordpress.org/trunk@44351 git-svn-id: http://core.svn.wordpress.org/trunk@44181 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/link-template.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index a56c9635ee..cda3444af8 100644 --- a/wp-includes/link-template.php +++ b/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 ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index a8071b79ff..4a156bb928 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.1-alpha-44350'; +$wp_version = '5.1-alpha-44351'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.