Media: Don't generate responsive image attributes if src does not match ID in wp-image- class.

We rely on the `wp-image-` class to quickly find an attachment ID to add responsive image attributes.
To avoid incorrect images being displayed, do not add these attributes if the `src` does not match the
meta from the attachment ID in the class.

Props azaozz, kovshenin, joemcgill.
Fixes: #34898.

Built from https://develop.svn.wordpress.org/trunk@35820


git-svn-id: http://core.svn.wordpress.org/trunk@35784 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Mike Schroder
2015-12-07 20:08:51 +00:00
parent 3c0c5e6ad5
commit 6f3da8d57b
2 changed files with 23 additions and 1 deletions

View File

@@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.5-alpha-35818';
$wp_version = '4.5-alpha-35820';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.