WordPress/wp-includes/js
Andrew Nacin 60676ee282 Introduce HTML5 caption support.
When a theme supports HTML5 captions via add_theme_support( 'html5', 'caption' ), figure and figcaption will be used instead of div and p.

There's a bonus. But first, some history: Captions were introduced with an inline style set for the container. This remains, as it is there to force captions to wrap. But this inline style included an extra 10 pixels, which have vexxed theme developers for years. While these pixels were designed to ensure padding around floated images, modern themes handle this with grace. The additional pixels thus feel encumbering.

As the new HTML5 gallery support avoids outputting default gallery styles (again, irking theme developers for years; see #26697), the new HTML5 caption support will also ditch these 10 pixels of unwanted hand-holding. 

The 10 pixels are also removed entirely in the visual editor (and more styles may also disappear here; see #26642), giving themes the power necessary to match the frontend styles.

The filter img_caption_shortcode_width added in 3.7 to work around this madness (see #14380) is skipped entirely when the theme supports HTML5 captions.

props obenland, azaozz.
see #26642. also fixes #9066.

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


git-svn-id: http://core.svn.wordpress.org/trunk@27511 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-24 02:05:14 +00:00
..
crop its <=> it's in documentation, along with a rogue the, The, and looses. props trepmal. fixes #22665. 2012-12-20 15:55:32 +00:00
imgareaselect Update imgAreaSelect to 0.9.10. fixes #25370. 2013-09-21 10:43:10 +00:00
jcrop Update Jcrop to 0.9.12 (unused in WP core). 2013-09-21 12:46:09 +00:00
jquery Add jquery.masonry.min.js. fixes #25351. 2014-03-04 02:20:14 +00:00
mediaelement Unifying media controls and supporting playlists in the editor: 2014-03-20 13:33:14 +00:00
plupload Plupload: switch to urlstream upload method when the 'flash' runtime is used in non IE browsers. This ensures cookies are sent but limits the maximum file size that flash can handle. 2014-03-23 23:45:19 +00:00
swfupload Remove a few unnecessary jQuery selectors added in [27239]. Playlists don't exist in some older contexts that galleries do. 2014-02-24 20:49:14 +00:00
thickbox Restyle the plugin install details modal to match the rest of the admin. Props avryl and paulwilde for initial mockup, see #26952 2014-03-16 18:28:17 +00:00
tinymce Introduce HTML5 caption support. 2014-03-24 02:05:14 +00:00
admin-bar.js Make older mobile browsers and IE7 usable: 2013-12-09 02:41:10 +00:00
admin-bar.min.js Update the versions of several devDependencies in package.json. grunt-cssjanus has been updated to 0.2.2, we no longer need the fork. Run npm install to receive updates for node_modules in the project root. 2014-01-29 04:43:30 +00:00
autosave.js Autosave: Fix typo in event namespace. props avryl, see #25272. 2014-02-04 16:07:12 +00:00
autosave.min.js Autosave: Fix typo in event namespace. props avryl, see #25272. 2014-02-04 16:07:12 +00:00
backbone.min.js Update Backbone to version 1.1.2. 2014-02-22 15:42:14 +00:00
colorpicker.js Pinking shears 2012-11-17 15:11:29 +00:00
colorpicker.min.js Update the versions of several devDependencies in package.json. grunt-cssjanus has been updated to 0.2.2, we no longer need the fork. Run npm install to receive updates for node_modules in the project root. 2014-01-29 04:43:30 +00:00
comment-reply.js Fix JSHint errors in six files. 2013-11-15 04:42:09 +00:00
comment-reply.min.js Fix JSHint errors in six files. 2013-11-15 04:42:09 +00:00
customize-base.js Customizer: Revert [26548], removing _.isEqual() for proper object comparison. 2013-12-05 23:13:10 +00:00
customize-base.min.js Update the versions of several devDependencies in package.json. grunt-cssjanus has been updated to 0.2.2, we no longer need the fork. Run npm install to receive updates for node_modules in the project root. 2014-01-29 04:43:30 +00:00
customize-loader.js Fix JSHint errors for customize-loader. 2013-11-15 04:31:10 +00:00
customize-loader.min.js Temporarily remove CSS preprocessing until we can get our Ruby dependency sorted out. 2013-11-13 21:45:11 +00:00
customize-models.js Customizer: Use the _.now() function from Undescore.js for the current timestamp. Date.now() isn't supported in IE8. 2014-03-22 10:54:14 +00:00
customize-models.min.js Customizer: Use the _.now() function from Undescore.js for the current timestamp. Date.now() isn't supported in IE8. 2014-03-22 10:54:14 +00:00
customize-preview-widgets.js Widget Customizer: Fix 'WidgetCustomizerPreview' is undefined error in IE8/9. 2014-03-22 21:04:15 +00:00
customize-preview-widgets.min.js Widget Customizer: Fix 'WidgetCustomizerPreview' is undefined error in IE8/9. 2014-03-22 21:04:15 +00:00
customize-preview.js Fix JSHint errors in 5 files. 2013-11-15 05:16:09 +00:00
customize-preview.min.js Temporarily remove CSS preprocessing until we can get our Ruby dependency sorted out. 2013-11-13 21:45:11 +00:00
customize-views.js Fixes for jshint 2014-03-20 22:27:15 +00:00
customize-views.min.js More translation cleanups. 2014-03-19 08:18:14 +00:00
heartbeat.js Heartbeat: Don't use a variable of the same name as the function it is in. 2013-12-04 19:24:09 +00:00
heartbeat.min.js Update the versions of several devDependencies in package.json. grunt-cssjanus has been updated to 0.2.2, we no longer need the fork. Run npm install to receive updates for node_modules in the project root. 2014-01-29 04:43:30 +00:00
hoverIntent.js hoverIntent r7. props mjbanks. fixes #23752. 2013-05-14 19:53:05 +00:00
hoverIntent.min.js Temporarily remove CSS preprocessing until we can get our Ruby dependency sorted out. 2013-11-13 21:45:11 +00:00
json2.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
json2.min.js Temporarily remove CSS preprocessing until we can get our Ruby dependency sorted out. 2013-11-13 21:45:11 +00:00
masonry.min.js Update the Masonry JavaScript library to version 3. 2014-02-25 19:53:15 +00:00
mce-view.js Add MCE views for audio and video shortcodes. When the shortcode does not contain a source that supports native playback, just show the filename. 2014-03-19 07:02:15 +00:00
mce-view.min.js Add MCE views for audio and video shortcodes. When the shortcode does not contain a source that supports native playback, just show the filename. 2014-03-19 07:02:15 +00:00
media-audiovideo.js When an HTML5 fallback button is pressed in the Audio or Video Details state, filter the library by that specific mime-type when the Add Audio|Video Source is activated. 2014-03-23 03:16:14 +00:00
media-audiovideo.min.js When an HTML5 fallback button is pressed in the Audio or Video Details state, filter the library by that specific mime-type when the Add Audio|Video Source is activated. 2014-03-23 03:16:14 +00:00
media-editor.js When inserting a video shortcode into the editor, set the poster attribute automatically if the video has a featured image attached to it. 2014-03-23 03:36:15 +00:00
media-editor.min.js When inserting a video shortcode into the editor, set the poster attribute automatically if the video has a featured image attached to it. 2014-03-23 03:36:15 +00:00
media-models.js Create a new file, media-audiovideo.js, to house all of the audio and video JS code in core. 2014-03-19 05:31:15 +00:00
media-models.min.js Create a new file, media-audiovideo.js, to house all of the audio and video JS code in core. 2014-03-19 05:31:15 +00:00
media-views.js When an HTML5 fallback button is pressed in the Audio or Video Details state, filter the library by that specific mime-type when the Add Audio|Video Source is activated. 2014-03-23 03:16:14 +00:00
media-views.min.js When an HTML5 fallback button is pressed in the Audio or Video Details state, filter the library by that specific mime-type when the Add Audio|Video Source is activated. 2014-03-23 03:16:14 +00:00
quicktags.js Various JSHint fixes. see #26446. 2014-02-08 00:52:12 +00:00
quicktags.min.js Update the versions of several devDependencies in package.json. grunt-cssjanus has been updated to 0.2.2, we no longer need the fork. Run npm install to receive updates for node_modules in the project root. 2014-01-29 04:43:30 +00:00
shortcode.js Fix JSHint errors in shortcode.js. 2013-11-15 21:25:10 +00:00
shortcode.min.js Temporarily remove CSS preprocessing until we can get our Ruby dependency sorted out. 2013-11-13 21:45:11 +00:00
swfobject.js Update swfobject 2012-04-17 23:09:29 +00:00
tw-sack.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
tw-sack.min.js Update the versions of several devDependencies in package.json. grunt-cssjanus has been updated to 0.2.2, we no longer need the fork. Run npm install to receive updates for node_modules in the project root. 2014-01-29 04:43:30 +00:00
underscore.min.js Update Backbone from 1.0 to 1.1. 2014-02-13 07:34:13 +00:00
utils.js Fix JSHint errors in utils.js. 2013-11-15 05:26:10 +00:00
utils.min.js Fix JSHint errors in utils.js. 2013-11-15 05:26:10 +00:00
wp-ajax-response.js Fix JSHint errors in the old XML-based ajax response JS. 2013-11-14 05:43:10 +00:00
wp-ajax-response.min.js Fix JSHint errors in the old XML-based ajax response JS. 2013-11-14 05:43:10 +00:00
wp-auth-check.js Heartbeat: update wp-auth-check to use the new "connectNow()" method after a successful login, see #25073. 2013-12-02 18:47:09 +00:00
wp-auth-check.min.js Update the versions of several devDependencies in package.json. grunt-cssjanus has been updated to 0.2.2, we no longer need the fork. Run npm install to receive updates for node_modules in the project root. 2014-01-29 04:43:30 +00:00
wp-backbone.js Update media-views and wp.Backbone.View for Backbone 1.1. 2014-02-13 07:36:13 +00:00
wp-backbone.min.js Update media-views and wp.Backbone.View for Backbone 1.1. 2014-02-13 07:36:13 +00:00
wp-list-revisions.js Fix JSHint errors in two files. see #25957, #25864. (Similar names but separate files.) 2013-11-15 06:24:10 +00:00
wp-list-revisions.min.js Temporarily remove CSS preprocessing until we can get our Ruby dependency sorted out. 2013-11-13 21:45:11 +00:00
wp-lists.js Fix JSHint errors in six files. 2013-11-15 04:42:09 +00:00
wp-lists.min.js Update the versions of several devDependencies in package.json. grunt-cssjanus has been updated to 0.2.2, we no longer need the fork. Run npm install to receive updates for node_modules in the project root. 2014-01-29 04:43:30 +00:00
wp-pointer.js Fix JSHint errors in six files. 2013-11-15 04:42:09 +00:00
wp-pointer.min.js Temporarily remove CSS preprocessing until we can get our Ruby dependency sorted out. 2013-11-13 21:45:11 +00:00
wp-util.js Fix JSHint errors in two files. see #25957, #25864. (Similar names but separate files.) 2013-11-15 06:24:10 +00:00
wp-util.min.js Update the versions of several devDependencies in package.json. grunt-cssjanus has been updated to 0.2.2, we no longer need the fork. Run npm install to receive updates for node_modules in the project root. 2014-01-29 04:43:30 +00:00
wpdialog.js TinyMCE 4.0.12, first run. 2013-12-28 23:53:15 +00:00
wpdialog.min.js TinyMCE 4.0.12, first run. 2013-12-28 23:53:15 +00:00
wplink.js wpLink: bring back the Cancel link, improve responsive styles, see #26952 2014-03-12 03:07:15 +00:00
wplink.min.js wpLink: bring back the Cancel link, improve responsive styles, see #26952 2014-03-12 03:07:15 +00:00
zxcvbn-async.js Mark zxcvbn global to avoid JSHint errors. 2013-11-12 23:43:09 +00:00
zxcvbn-async.min.js Update the versions of several devDependencies in package.json. grunt-cssjanus has been updated to 0.2.2, we no longer need the fork. Run npm install to receive updates for node_modules in the project root. 2014-01-29 04:43:30 +00:00
zxcvbn.min.js Add a copyright notice to zxcvbn. fixes #25926. 2013-12-04 19:53:10 +00:00