WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/12/2015 12:19:34 AM (5 years ago)
Author:
pento
Message:

In get_avatar_data(), there's no need to return false if we couldn't find an avatar, as Gravatar can handle being given an empty email hash. This allows the default avatar to show when no email address is given.

See #21195

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/avatar.php

    r31152 r31153  
    9999    }
    100100
    101     /**
    102      * @ticket 21195
    103      */
    104     public function test_get_avatar_url_bad_id() {
    105         $this->assertFalse( get_avatar_url( false ) );
    106         $this->assertFalse( get_avatar_url( 100000 ) );
    107     }
    108 
    109101    protected $fakeURL;
    110102    /**
Note: See TracChangeset for help on using the changeset viewer.