From 4bc89fef3262be7adc40a15b1cb6d1b6a8727cfb Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Mon, 12 Jan 2015 00:03:24 +0000 Subject: [PATCH] In `get_avatar()`, revert the `` tag attributes to using single quotes, instead of double quotes. This behaviour was changed in [31107], but caused problems for code that attempted to parse the `` tag. See #21195 Built from https://develop.svn.wordpress.org/trunk@31152 git-svn-id: http://core.svn.wordpress.org/trunk@31133 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/pluggable.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 0c871388b2..468b92610e 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -2181,7 +2181,7 @@ function get_avatar( $id_or_email, $size = 96, $default = '', $alt = '', $args = } $avatar = sprintf( - '%s', + "%s", esc_attr( $args['alt'] ), esc_url( $url ), esc_attr( join( ' ', $class ) ), diff --git a/wp-includes/version.php b/wp-includes/version.php index b28e00d501..dfa41d0959 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-alpha-31151'; +$wp_version = '4.2-alpha-31152'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.