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:
parent
36f615eac6
commit
8e881be345
@ -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 );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user