Go to file
Mike Schroder 5b025834f9 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@35820 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-07 20:07:37 +00:00
src Media: Don't generate responsive image attributes if `src` does not match ID in `wp-image-` class. 2015-12-07 20:07:37 +00:00
tests Media: Don't generate responsive image attributes if `src` does not match ID in `wp-image-` class. 2015-12-07 20:07:37 +00:00
tools/i18n
.editorconfig
.gitignore Remove an IDE-specific rule in `.gitignore`. These should be managed in the user's `~/.gitignore_global` file. 2015-10-18 00:15:23 +00:00
.jshintrc Build: Prevent non-breaking spaces from accidentally being inserted into JavaScript files. 2015-11-12 12:04:55 +00:00
.travis.yml Remove PHP 7 from allowed failures list 2015-11-12 21:44:24 +00:00
Gruntfile.js Build: Update source for `includes:embed` after [35718]. 2015-11-20 15:36:21 +00:00
package.json Bump package.json to 4.5.0. 2015-12-06 17:35:35 +00:00
phpunit.xml.dist
wp-cli.yml Remove debug mode from WP-CLI by default, as it now outputs too much debugging information to be of use during normal development. 2015-11-28 18:36:06 +00:00
wp-config-sample.php
wp-tests-config-sample.php