WordPress/wp-includes
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
..
ID3 ID3 1.9.7. 2013-07-13 00:37:36 +00:00
SimplePie SimplePie: Fix use of DOMElement as array. 2013-09-11 04:02:10 +00:00
Text Declare Text_Diff::trimNewlines() as static. Upstream is not back compat. props aaroncampbell. fixes #24372. 2013-05-25 22:10:53 +00:00
certificates WP_HTTP: Update the Root Certificate bundle used for SSL communication by WP_HTTP. 2014-02-27 02:33:14 +00:00
css Move the styling of drag/drop on the editor uploading to media-views.css, see #27465 2014-03-23 01:42:15 +00:00
fonts Widgets dashicons update. 2014-03-08 03:38:16 +00:00
images Reference https://wordpress.org rather than http://wordpress.org in strings, links, comments, etc. 2014-03-03 02:34:27 +00:00
js Introduce HTML5 caption support. 2014-03-24 02:05:14 +00:00
pomo Fix strict notices in Tests_POMO_PO. 2013-12-01 12:48:10 +00:00
theme-compat Reference https://wordpress.org rather than http://wordpress.org in strings, links, comments, etc. 2014-03-03 02:34:27 +00:00
admin-bar.php Reference https://wordpress.org rather than http://wordpress.org in strings, links, comments, etc. 2014-03-03 02:34:27 +00:00
atomlib.php First there were two, and now there are three -- in the @since versions that came before and that shall be. And so it will be, says nacin. 2013-12-24 18:57:12 +00:00
author-template.php Remove a redundant title attribute. See #26559. Props joedolson. 2014-03-18 22:02:15 +00:00
bookmark-template.php Use a docs-specific variable for the `link_category` hook docs in wp-admin/bookmarks-template.php. 2014-01-18 16:58:13 +00:00
bookmark.php Add some missing braces to get_bookmarks() which was causing an early return. Introduced in [25934]. See #25468. Fixes #25874 2013-11-08 02:20:10 +00:00
cache.php Rather than removing the 3rd argument in `WP_Object_Cache::delete()`, mark it as `$deprecated`. 2014-02-11 16:41:12 +00:00
canonical.php First there were two, and now there are three -- in the @since versions that came before and that shall be. And so it will be, says nacin. 2013-12-24 18:57:12 +00:00
capabilities.php Don't default to current user for capability checks when dealing with a post without an author (post_author = 0). 2014-03-04 03:09:15 +00:00
category-template.php Inline documentation for hooks in wp-includes/category-template.php. 2014-03-24 01:35:15 +00:00
category.php Avoid a notice in `get_the_category_by_ID()` when `is_wp_error( $term )` is false but `$term->name` is not set. Clarify the `@return` value of `get_category()` and `get_tag()` which return the same possible types as `get_term()`, which they wrap. 2014-03-13 04:04:15 +00:00
class-IXR.php Allow query strings for servers in IXR_Client and WP_HTTP_IXR_Client. 2014-03-15 05:01:14 +00:00
class-feed.php Inline documentation for hooks in wp-includes/class-feed.php. 2013-10-08 20:07:08 +00:00
class-http.php Add context to an internal HTTP API hook. 2014-03-08 21:54:15 +00:00
class-json.php Patch Services_JSON to use the proper function name and avoid a fatal error. see #24210. 2013-07-08 16:55:34 +00:00
class-oembed.php Remove Qik from the oEmbed provider list as it's shutting down. Fixes #27302. Props JustinSainton. 2014-03-13 21:28:14 +00:00
class-phpass.php First there were two, and now there are three -- in the @since versions that came before and that shall be. And so it will be, says nacin. 2013-12-24 18:57:12 +00:00
class-phpmailer.php Update PHPMailer to 5.2.7 from 5.2.4. 2014-03-03 20:25:14 +00:00
class-pop3.php
class-simplepie.php Update SimplePie to 1.3.1. Props rmccue, ocean90. fixes #22321 2012-11-05 14:25:25 +00:00
class-smtp.php Update PHPMailer to 5.2.7 from 5.2.4. 2014-03-03 20:25:14 +00:00
class-snoopy.php Use correct variable in the deprecated and abandoned Snoopy HTTP client. see #24210. 2013-07-08 17:17:46 +00:00
class-wp-admin-bar.php Convert argument array documentation to the hash-notation style for `WP_Admin_Bar::add_node()` and `WP_Admin_Bar::add_group()`. 2014-03-03 06:11:13 +00:00
class-wp-ajax-response.php Specify the charset in WP_Ajax_Response::send(). Props sergey.s.betke@novgaro.ru, SergeyBiryukov. fixes #19448 2012-08-15 18:17:21 +00:00
class-wp-customize-control.php More translation cleanups. 2014-03-19 08:18:14 +00:00
class-wp-customize-manager.php Inline documentation for hooks in wp-includes/class-wp-customize-manager.php. 2014-03-06 14:11:15 +00:00
class-wp-customize-section.php Update the Customizer API inline docs. 2014-03-04 20:21:14 +00:00
class-wp-customize-setting.php Inline documentation for hooks in wp-includes/class-wp-customize-setting.php. 2014-03-06 14:04:13 +00:00
class-wp-customize-widgets.php Widget Customizer: Fix 'WidgetCustomizerPreview' is undefined error in IE8/9. 2014-03-22 21:04:15 +00:00
class-wp-editor.php Introduce HTML5 caption support. 2014-03-24 02:05:14 +00:00
class-wp-embed.php Inline documentation for core shortcode attributes. 2014-01-07 16:07:12 +00:00
class-wp-error.php Correct inline docs for is_wp_error(). props johnbillion. fixes #24637. 2013-06-24 18:23:45 +00:00
class-wp-http-ixr-client.php Allow query strings for servers in IXR_Client and WP_HTTP_IXR_Client. 2014-03-15 05:01:14 +00:00
class-wp-image-editor-gd.php The Pinking Shears stir from their slumber, awakened by what may seem, to those 2013-12-11 19:49:11 +00:00
class-wp-image-editor-imagick.php The Pinking Shears stir from their slumber, awakened by what may seem, to those 2013-12-11 19:49:11 +00:00
class-wp-image-editor.php Two more hook docs fixes. 2013-12-04 23:51:19 +00:00
class-wp-theme.php I am having a bad day. see #13265. 2014-03-08 04:20:14 +00:00
class-wp-walker.php Revert r25824:25875 from the core.svn.wordpress.org repository. 2013-10-25 02:29:52 +00:00
class-wp-xmlrpc-server.php XML-RPC: In wp.editPost, Remove all terms in a taxonomy when an empty array is explicitly passed. 2014-03-15 05:09:14 +00:00
class-wp.php Return 404 when querying author's posts who is not a member and has no posts on the site 2014-02-26 18:12:13 +00:00
class.wp-dependencies.php Inline documentation for WP_Dependencies and _WP_Dependency classes. 2013-09-20 19:54:10 +00:00
class.wp-scripts.php If the script_loader_src filter returns nothing, bail instead of printing <script src="">. 2013-09-16 22:12:09 +00:00
class.wp-styles.php Revert [27203], restore JIT color scheme stylesheets. Restores [27111]. 2014-03-12 16:12:15 +00:00
comment-template.php Avoid a notice in trackback_rdf() if user agent is not set. 2014-03-12 12:54:15 +00:00
comment.php Revert [27115] and let cache backends handle the stripping of spaces in cache keys as necessary. 2014-02-26 22:05:13 +00:00
compat.php
cron.php Cron: Fix a case where a cache inconsistency can cause wp_clear_scheduled_hook() to enter an infinite loop. This unravels the function from using other cron api functions to looping over the cron array directly. See #25773 2013-12-07 09:13:11 +00:00
date.php Fix a copy/paste error in WP_Date_Query parameter description. 2014-03-21 17:53:16 +00:00
default-constants.php First there were two, and now there are three -- in the @since versions that came before and that shall be. And so it will be, says nacin. 2013-12-24 18:57:12 +00:00
default-filters.php Allow for custom authentication handlers for all requests. 2014-03-09 15:23:15 +00:00
default-widgets.php In Recent Posts widget set default number to 5. 2014-03-17 17:01:14 +00:00
deprecated.php Revert [27203], restore JIT color scheme stylesheets. Restores [27111]. 2014-03-12 16:12:15 +00:00
feed-atom-comments.php Inline documentation for hooks in wp-includes/feed-atom-comments.php. 2013-12-21 20:22:12 +00:00
feed-atom.php Inline documentation for hooks in wp-includes/feed-atom.php. 2013-09-20 22:50:10 +00:00
feed-rdf.php Revert r25824:25875 from the core.svn.wordpress.org repository. 2013-10-25 02:29:52 +00:00
feed-rss.php Revert r25824:25875 from the core.svn.wordpress.org repository. 2013-10-25 02:29:52 +00:00
feed-rss2-comments.php Revert r25824:25875 from the core.svn.wordpress.org repository. 2013-10-25 02:29:52 +00:00
feed-rss2.php Inline documentation for hooks in wp-includes/feed-rss2.php. 2013-09-20 22:27:09 +00:00
feed.php Remove all `@package` and `@subpackage` PHPDoc tags not at the file- or class-levels in core. 2014-02-25 17:14:14 +00:00
formatting.php In `sanitize_file_name()`, replace a UTF-8-encoded Unicode representation of a non-breaking space (`\u00a0` / `\xc2\xa`) with an old-fashioned space: ` `. 2014-03-19 07:16:15 +00:00
functions.php In is_serialized(), use substr() rather than array access, for compatibility with multibyte overloading. 2014-03-17 20:09:17 +00:00
functions.wp-scripts.php Inline documentation for hooks in wp-includes/functions.wp-scripts.php. 2013-10-27 17:51:09 +00:00
functions.wp-styles.php Inline documentation for hooks in wp-includes/functions.wp-styles.php. 2013-10-27 17:59:09 +00:00
general-template.php Introduce `before_page_number` and `after_page_number` arguments for `paginate_links()`. Fixes #24709. Props grahamarmfield. 2014-03-18 23:31:14 +00:00
http.php Use get_current_site() instead of the $current_site global when possible. 2013-11-13 03:23:10 +00:00
kses.php Allow the role attribute in kses for all elements. 2014-03-04 02:11:16 +00:00
l10n.php Add jshintrc to qunit. 2013-10-30 14:39:10 +00:00
link-template.php Fix various issues with WP_Adjacent_Post: 2014-03-20 02:59:15 +00:00
load.php Return a bool from wp_using_ext_object_cache(), never a null. 2014-03-20 02:55:14 +00:00
locale.php Better description for WP_Locale::_strings_for_pot(). props dimadin. fixes #25937. 2013-11-13 14:01:09 +00:00
media-template.php 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.php Introduce HTML5 caption support. 2014-03-24 02:05:14 +00:00
meta.php Return false from metadata_exists() if the get_$type_metadata filter returns a false value. 2014-03-17 19:40:16 +00:00
ms-blogs.php Fix the return description for `switch_to_blog()` to reflect that it always returns true. 2014-03-02 04:41:15 +00:00
ms-default-constants.php Use get_current_site() instead of the $current_site global when possible. 2013-11-13 03:23:10 +00:00
ms-default-filters.php Live network counts of users and sites for small networks. 2013-09-25 16:21:09 +00:00
ms-deprecated.php Introduce wp_get_sites(), a long-awaited replacement for get_blog_list(). 2013-09-14 21:13:10 +00:00
ms-files.php Use stripslashes() instead of wp_unslash() in ms-files.php to avoid formatting.php dependency. props devesine, fixes #24374. 2013-05-20 20:20:22 +00:00
ms-functions.php In `remove_user_from_blog()`, avoid a potentially expensive `IN` query before invalidating the reassigned post and link caches. 2014-02-11 16:28:13 +00:00
ms-load.php In get_site_by_path(), avoid passing $paths through prepare(). If a path contains a %, we end up with problems. see #27003. 2014-03-06 18:18:15 +00:00
ms-settings.php Use wp_cache_add() instead of wp_cache_set() when we don't want an unconditional set. 2014-03-24 01:03:14 +00:00
nav-menu-template.php Add the ability to short-circuit wp_nav_menu() via the `pre_wp_nav_menu` hook. props kasparsd, DrewAPicture, Rarst. fixes #23627. 2014-03-03 20:43:15 +00:00
nav-menu.php Explicitly assign menu term relationship rather than piggybacking on wp_insert_post() with the tax_input argument. 2014-03-15 06:07:16 +00:00
option.php Inline documentation for hooks in wp-includes/option.php. 2014-03-02 23:35:13 +00:00
pluggable-deprecated.php Reference https://wordpress.org rather than http://wordpress.org in strings, links, comments, etc. 2014-03-03 02:34:27 +00:00
pluggable.php Avoid notices in wp_notify_postauthor() when a post has no author. 2014-03-17 20:31:14 +00:00
plugin.php Introduce doing_filter() and doing_action() to identify hooks in progress. 2014-02-26 18:44:14 +00:00
post-formats.php Allow has_post_format() to be used to check for any format. 2013-11-24 13:45:10 +00:00
post-template.php On attachment pages for audio and video, display players. Currently, only a link is displayed. Add minimal CSS rules for compatibility with 2011, 2012, and 2013 themes. 2014-03-19 19:00:14 +00:00
post-thumbnail-template.php Don't iterate over `$wp_query->posts` in `update_post_thumbnail_cache()` if it is empty. Adds unit tests. 2014-02-12 04:49:15 +00:00
post.php Turn on thumbnail support for `attachment:audio` and `attachment:video`. Change conditionals to check for theme OR post type support when determining whether to turn on the Featured Image UI pieces in the admin. 2014-03-23 02:35:14 +00:00
query.php WP_Query: allow split_the_query = false to avoid a split. 2014-03-20 02:54:15 +00:00
registration-functions.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
registration.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
revision.php `wp_get_post_revisions()` should have a default `orderby` of `date ID` to tie-break rapidly added revisions - namely, when unit tests are run. There is a test that occasionally fails when running all tests, and always fails when running `phpunit tests/phpunit/tests/post/revisions.php `. This fixes that. 2014-02-17 21:23:12 +00:00
rewrite.php Fix a typo in the `author_rewrite_rules` hook doc. 2014-03-02 02:50:14 +00:00
rss-functions.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
rss.php Inline docs for hooks in MagPie. 2013-09-06 17:19:09 +00:00
script-loader.php Unifying media controls and supporting playlists in the editor: 2014-03-20 13:33:14 +00:00
shortcodes.php Bail early from shortcode functions if no delimiter is present. 2014-03-04 07:11:13 +00:00
taxonomy.php Better standardize parameter value types in PHPDocs where both a post ID or `WP_Post` would be acceptable. 2014-03-08 19:32:16 +00:00
template-loader.php Add jshintrc to qunit. 2013-10-30 14:39:10 +00:00
template.php Inline documentation improvements for get_*_template() functions in wp-includes/template.php. 2014-01-05 17:55:11 +00:00
theme.php Clarify that unregister_default_headers() returns void in some situations. fixes #21876. 2014-03-18 00:12:15 +00:00
update.php Reference https://wordpress.org rather than http://wordpress.org in strings, links, comments, etc. 2014-03-03 02:34:27 +00:00
user.php Allow for custom authentication handlers for all requests. 2014-03-09 15:23:15 +00:00
vars.php Update the wp-inclues/vars.php file header to include Nginx as a recognized web server. 2014-01-10 18:15:13 +00:00
version.php 3.9-beta2 2014-03-20 04:43:15 +00:00
widgets.php Widget Customizer: Make temp hooks final and add inline docs. 2014-03-14 20:31:14 +00:00
wlwmanifest.xml The Pinking Shears stir from their slumber, awakened by what may seem, to those 2013-12-11 19:49:11 +00:00
wp-db.php Avoid a warning in wpdb::db_connect(). before_needle parameter of strstr() was added in PHP 5.3. 2014-03-11 19:27:15 +00:00
wp-diff.php Remove old debug comment. props nofearinc. fixes #25865. 2013-11-08 22:24:09 +00:00