Make WordPress Core

Ticket #32572: 32572v1.patch

File 32572v1.patch, 583 bytes (added by ravinderk, 10 years ago)

change under get_avatar function to remove extra api call

  • src/wp-includes/pluggable.php

     
    22292229                return false;
    22302230        }
    22312231
    2232         $url2x = get_avatar_url( $id_or_email, array_merge( $args, array( 'size' => $args['size'] * 2 ) ) );
    2233 
    22342232        $args = get_avatar_data( $id_or_email, $args );
    22352233
    22362234        $url = $args['url'];
    22372235
     2236
     2237        $url2x = add_query_arg( array( 's' => $args['size'] * 2 ), $args['url'] );
     2238
    22382239        if ( ! $url || is_wp_error( $url ) ) {
    22392240        return false;
    22402241        }