mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Previously, when inserting an image from a URL, leaving the `alt` field blank in the media modal would result in an image being inserted into the editor without an `alt` attribute, rather than an empty `alt`. This happened because the `props.type` would not get set in `wp.media.string.props()` — because `attachment` is undefined in this case — causing the image fallbacks to get skipped. This fixes the issue by explicitly setting `props.type` to 'image' in `wp.media.string.image()` before filling out the rest of the properties. Props ambrosey, dabnpits. Fixes #36735. git-svn-id: https://develop.svn.wordpress.org/trunk@38065 602fd350-edb4-49c9-b593-d223f7449a82 |
||
|---|---|---|
| src | ||
| tests | ||
| tools/i18n | ||
| .editorconfig | ||
| .gitignore | ||
| .jshintrc | ||
| .travis.yml | ||
| Gruntfile.js | ||
| package.json | ||
| phpunit.xml.dist | ||
| wp-cli.yml | ||
| wp-config-sample.php | ||
| wp-tests-config-sample.php | ||