wordpress-develop/src/wp-includes/js
Joe McGill 788bb093f2 Media: Remove alt fallbacks to improve accessibility.
This removes the fallbacks in `wp_get_attachment_image()` and in
`wp.media.string.props` which attempt to generate an `alt` value
from the image caption or title if an `alt` attribute isn't explicitly
set.

This allows for image HTML to be generated that contains an empty `alt`
value, i.e., `alt=""` which is much preferable for screen readers than
reading redundant content in the case of a caption, or when reading the
image title, which is often generated from the filename and not helpful
as `alt` text.

Props odie2, joedolson, rianrietveld, afercia, iamjolly, joemcgill.
Fixes #34635.

git-svn-id: https://develop.svn.wordpress.org/trunk@38812 602fd350-edb4-49c9-b593-d223f7449a82
2016-10-19 03:05:51 +00:00
..
crop
imgareaselect Site Icon: Add crop preview to the media modal. 2015-07-20 15:56:19 +00:00
jcrop
jquery External Libraries: Update Minified version of jquery.masonry.js 2016-08-18 18:54:41 +00:00
media Administration: Better consistency for the Media, Add Plugins, and Add Themes toolbars. 2016-10-14 21:32:08 +00:00
mediaelement External Libraries: Update MediaElement.js to 2.22.0. 2016-07-18 10:58:17 +00:00
plupload Media: Use the correct variable for the file object. 2016-06-16 16:14:25 +00:00
swfupload Upload: Correct encoding issue in swfupload.js, introduced in [29479]. 2016-09-03 15:01:06 +00:00
thickbox Accessibility: the Thickbox "Close" control should always be a button. 2016-05-23 10:29:44 +00:00
tinymce TinyMCE: 2016-10-14 21:37:41 +00:00
admin-bar.js Toolbar: Restore scroll-to-top functionality. 2015-07-20 20:01:34 +00:00
autosave.js Autosave: improve the notice when the sessionStorage autosave is different than the content. 2016-06-17 03:01:32 +00:00
backbone.js External Libraries: Update Backbone to version 1.3.3. 2016-06-16 09:26:06 +00:00
backbone.min.js External Libraries: Update Backbone to version 1.3.3. 2016-06-16 09:26:06 +00:00
colorpicker.js
comment-reply.js Comments: after [35593], extend support to IE8 and improve checking for elements hidden with CSS 2015-11-18 19:14:50 +00:00
customize-base.js Customize: Implement customized state persistence with changesets. 2016-10-18 20:04:36 +00:00
customize-loader.js Customize: Implement customized state persistence with changesets. 2016-10-18 20:04:36 +00:00
customize-models.js JSHint: Use 'global' rather than 'globals' for inline configuration. 2015-07-19 17:08:47 +00:00
customize-preview-nav-menus.js Customize: Implement customized state persistence with changesets. 2016-10-18 20:04:36 +00:00
customize-preview-widgets.js Customize: Implement customized state persistence with changesets. 2016-10-18 20:04:36 +00:00
customize-preview.js Customize: Split out link click.preview and form submit.preview event handlers from anonymous functions into named methods on wp.customize.Preview for extensibility. 2016-10-19 02:06:00 +00:00
customize-selective-refresh.js Customize: Implement customized state persistence with changesets. 2016-10-18 20:04:36 +00:00
customize-views.js Customizer: Contain "No image set/selected" in dashed border. 2016-02-23 17:26:58 +00:00
heartbeat.js Spelling: Standardize on "front end"/"back end" (noun) and "front-end"/"back-end" (adjective). 2016-02-25 12:52:33 +00:00
hoverIntent.js Update hoverIntent to 1.8.1. 2015-03-11 17:14:34 +00:00
imagesloaded.min.js External Libraries: Update Masonry to 3.3.2 and imagesLoaded to 3.2.0. 2016-06-28 18:47:01 +00:00
json2.js External Libraries: update json2.js to the 2015-05-03 version. Crockford does not tag releases: https://github.com/douglascrockford/JSON-js/commits/master 2015-10-06 14:01:52 +00:00
masonry.min.js External Libraries: Update Masonry to 3.3.2 and imagesLoaded to 3.2.0. 2016-06-28 18:47:01 +00:00
mce-view.js TinyMCE: add support for custom dashicon for wp.mce.View.setLoader(). 2016-10-11 00:55:22 +00:00
media-audiovideo.js Update Backbone and Underscore to the latest versions. 2016-02-17 15:21:09 +00:00
media-editor.js Media: Remove alt fallbacks to improve accessibility. 2016-10-19 03:05:51 +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:53:42 +00:00
media-models.js JSHint: don't redeclare globals listed in .jshintrc 2015-07-20 23:38:17 +00:00
media-views.js Administration: Better consistency for the Media, Add Plugins, and Add Themes toolbars. 2016-10-14 21:32:08 +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:24:56 +00:00
shortcode.js Media: Ensure empty alt attributes are set to blank strings. 2016-07-20 14:37:24 +00:00
swfobject.js
tw-sack.js
twemoji.js Emoji: Add support for the upcoming Emoji 4 release. 2016-10-04 03:23:22 +00:00
underscore.js Update Backbone and Underscore to the latest versions. 2016-02-17 15:21:09 +00:00
underscore.min.js Update Backbone and Underscore to the latest versions. 2016-02-17 15:21:09 +00:00
utils.js After [33840], JS regex needs the g modifier. 2015-09-08 16:43:27 +00:00
wp-a11y.js Accessibility: Ensure only text is sent to aria-live messages. 2016-07-20 14:25:34 +00:00
wp-ajax-response.js jQuery: Replace the use of the .size() method with the .length property. 2016-01-13 16:16:15 +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:21:36 +00:00
wp-backbone.js In wp.Backbone.Subviews, extract subviews with proper Underscore.js functions. 2016-01-15 04:02:00 +00:00
wp-embed-template.js Embeds: After [37745], check if a featured image exists before attaching an event listener. 2016-07-05 16:15:05 +00:00
wp-embed.js Embeds: Use a more accessible way to initially hide the iframe. 2016-02-25 10:22:43 +00:00
wp-emoji-loader.js Emoji: Add support for the upcoming Emoji 4 release. 2016-10-04 03:23:22 +00:00
wp-emoji.js Emoji: Update the Twemoji loader to include the rainbow flag. 2016-08-04 20:50:11 +00:00
wp-list-revisions.js
wp-lists.js wpLists: Pass the current element to process() to properly register event handlers. 2016-10-03 18:38:43 +00:00
wp-pointer.js
wp-util.js Utils: Update wp.template to match parameter changes to _.template in Underscore 1.8.3. 2016-06-23 02:29:15 +00:00
wpdialog.js
wplink.js TinyMCE wplink: 2016-10-17 20:00:53 +00:00
zxcvbn-async.js
zxcvbn.min.js