WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/20/2018 02:48:28 AM (3 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/link-template.php

    r43571 r44351  
    40534053    $args = apply_filters( 'pre_get_avatar_data', $args, $id_or_email );
    40544054
    4055     if ( isset( $args['url'] ) && ! is_null( $args['url'] ) ) {
     4055    if ( isset( $args['url'] ) ) {
    40564056        /** This filter is documented in wp-includes/link-template.php */
    40574057        return apply_filters( 'get_avatar_data', $args, $id_or_email );
Note: See TracChangeset for help on using the changeset viewer.