WordPress/wp-includes/js
Joe McGill c1e8f430f9 Media: Always add alt attributes to images inserted from URLs
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.
Built from https://develop.svn.wordpress.org/trunk@38065


git-svn-id: http://core.svn.wordpress.org/trunk@38006 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-15 03:16:30 +00:00
..
crop
imgareaselect
jcrop
jquery External Libraries: Update jQuery to 1.12.4. 2016-05-23 09:00:29 +00:00
mediaelement External Libraries: Update MediaElement.js to 2.21.2. 2016-06-28 09:26:28 +00:00
plupload Media: Use the correct variable for the file object. 2016-06-16 16:15:31 +00:00
swfupload
thickbox Accessibility: the Thickbox "Close" control should always be a button. 2016-05-23 10:30:29 +00:00
tinymce TinyMCE: preserve <script> and <style> tags inside the editor. 2016-07-12 22:09:31 +00:00
admin-bar.js
admin-bar.min.js Update grunt-contrib-uglify from ~0.10.0 to ~1.0.1 2016-04-15 16:10:37 +00:00
autosave.js Autosave: improve the notice when the sessionStorage autosave is different than the content. 2016-06-17 03:02:29 +00:00
autosave.min.js Autosave: improve the notice when the sessionStorage autosave is different than the content. 2016-06-17 03:02:29 +00:00
backbone.min.js External Libraries: Update Backbone to version 1.3.3. 2016-06-16 09:27:29 +00:00
colorpicker.js
colorpicker.min.js Update grunt-contrib-uglify from ~0.10.0 to ~1.0.1 2016-04-15 16:10:37 +00:00
comment-reply.js Comments: after [35593], extend support to IE8 and improve checking for elements hidden with CSS 2015-11-18 19:15:28 +00:00
comment-reply.min.js Comments: after [35593], extend support to IE8 and improve checking for elements hidden with CSS 2015-11-18 19:15:28 +00:00
customize-base.js Customize: Add setting validation model and control notifications to augment setting sanitization. 2016-05-20 21:10:27 +00:00
customize-base.min.js Customize: Add setting validation model and control notifications to augment setting sanitization. 2016-05-20 21:10:27 +00:00
customize-loader.js Customize: Don't auto-close the customizer when a new theme is activated. 2016-05-01 19:54:27 +00:00
customize-loader.min.js Customize: Don't auto-close the customizer when a new theme is activated. 2016-05-01 19:54:27 +00:00
customize-models.js
customize-models.min.js Update grunt-contrib-uglify from ~0.10.0 to ~1.0.1 2016-04-15 16:10:37 +00:00
customize-preview-nav-menus.js Customize: Fix regressions and harden implementation of selective refresh for nav menus. 2016-03-09 00:09:26 +00:00
customize-preview-nav-menus.min.js Customize: Fix regressions and harden implementation of selective refresh for nav menus. 2016-03-09 00:09:26 +00:00
customize-preview-widgets.js Customize: Remove format placeholders from widget templates and selectors, fixing a jQuery selector syntax error and the broken highlight/shift-click behaviors. 2016-04-28 18:20:29 +00:00
customize-preview-widgets.min.js Customize: Remove format placeholders from widget templates and selectors, fixing a jQuery selector syntax error and the broken highlight/shift-click behaviors. 2016-04-28 18:20:29 +00:00
customize-preview.js Customize: Update server-sent setting validation notifications as changes are entered. 2016-06-14 19:17:28 +00:00
customize-preview.min.js Customize: Update server-sent setting validation notifications as changes are entered. 2016-06-14 19:17:28 +00:00
customize-selective-refresh.js Customize: Update server-sent setting validation notifications as changes are entered. 2016-06-14 19:17:28 +00:00
customize-selective-refresh.min.js Customize: Update server-sent setting validation notifications as changes are entered. 2016-06-14 19:17:28 +00:00
customize-views.js Customizer: Contain "No image set/selected" in dashed border. 2016-02-23 17:27:26 +00:00
customize-views.min.js Customizer: Contain "No image set/selected" in dashed border. 2016-02-23 17:27:26 +00:00
heartbeat.js Spelling: Standardize on "front end"/"back end" (noun) and "front-end"/"back-end" (adjective). 2016-02-25 12:53:27 +00:00
heartbeat.min.js
hoverIntent.js
hoverIntent.min.js
imagesloaded.min.js External Libraries: Update Masonry to 3.3.2 and imagesLoaded to 3.2.0. 2016-06-28 18:48:31 +00:00
json2.js
json2.min.js
masonry.min.js External Libraries: Update Masonry to 3.3.2 and imagesLoaded to 3.2.0. 2016-06-28 18:48:31 +00:00
mce-view.js TinyMCE: use new non-editable implementation 2016-05-17 18:49:30 +00:00
mce-view.min.js TinyMCE: use new non-editable implementation 2016-05-17 18:49:30 +00:00
media-audiovideo.js Update Backbone and Underscore to the latest versions. 2016-02-17 15:22:26 +00:00
media-audiovideo.min.js Update Backbone and Underscore to the latest versions. 2016-02-17 15:22:26 +00:00
media-editor.js Media: Always add alt attributes to images inserted from URLs 2016-07-15 03:16:30 +00:00
media-editor.min.js Media: Always add alt attributes to images inserted from URLs 2016-07-15 03:16:30 +00:00
media-grid.js Media: properly refresh the position of the Plupload shim so it moves over the Select Files button or off the screen. Fixes selecting files in MS Edge on the Media grid and Media -> Add New screens. 2016-06-16 04:54:29 +00:00
media-grid.min.js Media: properly refresh the position of the Plupload shim so it moves over the Select Files button or off the screen. Fixes selecting files in MS Edge on the Media grid and Media -> Add New screens. 2016-06-16 04:54:29 +00:00
media-models.js
media-models.min.js Update grunt-contrib-uglify from ~0.10.0 to ~1.0.1 2016-04-15 16:10:37 +00:00
media-views.js Media: Restore keyboard navigation of the media grid. 2016-06-21 13:35:34 +00:00
media-views.min.js Media: Restore keyboard navigation of the media grid. 2016-06-21 13:35:34 +00:00
quicktags.js Editor quickTags: when the user selects some text by triple-clicking, then wraps it in a tag, and the last selected char is \n, insert the closing tag before the line break. 2016-06-09 00:25:27 +00:00
quicktags.min.js Editor quickTags: when the user selects some text by triple-clicking, then wraps it in a tag, and the last selected char is \n, insert the closing tag before the line break. 2016-06-09 00:25:27 +00:00
shortcode.js Abstract the shortcode attribute parsing regex into its own function, update the JavaScript counterpart, and introduce a test to ensure they do not diverge again. 2015-10-08 03:12:24 +00:00
shortcode.min.js Abstract the shortcode attribute parsing regex into its own function, update the JavaScript counterpart, and introduce a test to ensure they do not diverge again. 2015-10-08 03:12:24 +00:00
swfobject.js
tw-sack.js
tw-sack.min.js
twemoji.js Add grunt prerelease task 2016-03-10 05:37:27 +00:00
twemoji.min.js Add grunt prerelease task 2016-03-10 05:37:27 +00:00
underscore.min.js Update Backbone and Underscore to the latest versions. 2016-02-17 15:22:26 +00:00
utils.js
utils.min.js
wp-a11y.js Accessibility: Remove the ARIA roles from the wp.a11y.speak() live regions. 2016-06-16 21:51:27 +00:00
wp-a11y.min.js Accessibility: Remove the ARIA roles from the wp.a11y.speak() live regions. 2016-06-16 21:51:27 +00:00
wp-ajax-response.js jQuery: Replace the use of the .size() method with the .length property. 2016-01-13 16:17:27 +00:00
wp-ajax-response.min.js Update grunt-contrib-uglify from ~0.10.0 to ~1.0.1 2016-04-15 16:10:37 +00:00
wp-auth-check.js jQuery: Replace use of the .load() method for the "load" event with .on( 'load', handler ). 2016-01-13 17:22:27 +00:00
wp-auth-check.min.js jQuery: Replace use of the .load() method for the "load" event with .on( 'load', handler ). 2016-01-13 17:22:27 +00:00
wp-backbone.js In wp.Backbone.Subviews, extract subviews with proper Underscore.js functions. 2016-01-15 04:02:28 +00:00
wp-backbone.min.js In wp.Backbone.Subviews, extract subviews with proper Underscore.js functions. 2016-01-15 04:02:28 +00:00
wp-embed-template.js Embeds: After [37745], check if a featured image exists before attaching an event listener. 2016-07-05 16:16:57 +00:00
wp-embed-template.min.js Embeds: After [37745], check if a featured image exists before attaching an event listener. 2016-07-05 16:16:57 +00:00
wp-embed.js Embeds: Use a more accessible way to initially hide the iframe. 2016-02-25 10:23:27 +00:00
wp-embed.min.js Embeds: Use a more accessible way to initially hide the iframe. 2016-02-25 10:23:27 +00:00
wp-emoji-loader.js Emoji: The diversity support test was incorrectly passing on all browsers. 2016-04-20 13:56:28 +00:00
wp-emoji-loader.min.js Emoji: The diversity support test was incorrectly passing on all browsers. 2016-04-20 13:56:28 +00:00
wp-emoji-release.min.js Emoji: Use SVG in supported browsers 2016-05-20 06:03:27 +00:00
wp-emoji.js Emoji: Use SVG in supported browsers 2016-05-20 06:03:27 +00:00
wp-emoji.min.js Emoji: Use SVG in supported browsers 2016-05-20 06:03:27 +00:00
wp-list-revisions.js
wp-list-revisions.min.js Update grunt-contrib-uglify from ~0.10.0 to ~1.0.1 2016-04-15 16:10:37 +00:00
wp-lists.js Comments: After [37743], prevent a JavaScript error when wpAjax.parseAjaxResponse() returns an error or true. 2016-07-13 15:03:28 +00:00
wp-lists.min.js Comments: After [37743], prevent a JavaScript error when wpAjax.parseAjaxResponse() returns an error or true. 2016-07-13 15:03:28 +00:00
wp-pointer.js
wp-pointer.min.js
wp-util.js Multisite: Change WP_Network id property to an integer. 2016-06-26 14:26:29 +00:00
wp-util.min.js Multisite: Change WP_Network id property to an integer. 2016-06-26 14:26:29 +00:00
wpdialog.js
wpdialog.min.js
wplink.js Editor: after inserting a link detect if the URL is broken, first run. 2016-06-17 20:41:28 +00:00
wplink.min.js Editor: after inserting a link detect if the URL is broken, first run. 2016-06-17 20:41:28 +00:00
zxcvbn-async.js
zxcvbn-async.min.js
zxcvbn.min.js