In get_avatar(), revert the <img> 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 <img> 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
This commit is contained in:
Gary Pendergast 2015-01-12 00:03:24 +00:00
parent eed3698c49
commit 4bc89fef32
2 changed files with 2 additions and 2 deletions

View File

@ -2181,7 +2181,7 @@ function get_avatar( $id_or_email, $size = 96, $default = '', $alt = '', $args =
}
$avatar = sprintf(
'<img alt="%s" src="%s" class="%s" height="%d" width="%d" />',
"<img alt='%s' src='%s' class='%s' height='%d' width='%d' />",
esc_attr( $args['alt'] ),
esc_url( $url ),
esc_attr( join( ' ', $class ) ),

View File

@ -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.