diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 06cfee79f3..f0934588bd 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -2235,6 +2235,8 @@ function get_avatar( $id_or_email, $size = 96, $default = '', $alt = '', $args = return false; } + $url2x = get_avatar_url( $id_or_email, array_merge( $args, array( 'size' => $args['size'] * 2 ) ) ); + $args = get_avatar_data( $id_or_email, $args ); $url = $args['url']; @@ -2243,8 +2245,6 @@ function get_avatar( $id_or_email, $size = 96, $default = '', $alt = '', $args = return false; } - $url2x = add_query_arg( array( 's' => $args['size'] * 2 ), $args['url'] ); - $class = array( 'avatar', 'avatar-' . (int) $args['size'], 'photo' ); if ( ! $args['found_avatar'] || $args['force_default'] ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 474fa91d4e..e10fc096ca 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.3-alpha-32968'; +$wp_version = '4.3-alpha-32969'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.