WordPress/wp-includes
Weston Ruter 2214f69e43 Customize: Allow controls to be registered without any associated settings.
* Improves parity between partials and controls. A partial or control can be settingless if instantiated with `settings` param as empty array (otherwise, if null, then the partial/control ID is used). 
* Eliminate need to create dummy settings that serve no purpose except to place a control in the UI.
* Removes dummy settings for `create_new_menu` and `new_menu_name`.
* Introduces `WP_Customize_Control::$capability` and `WP_Customize_Partial::$capability`, and if set checks them in the respective `check_capabilities()` methods.
* Prevents PHP fatal error from happening when non-existing settings are provided to control: "Call to a member function `check_capabilities()` on a non-object".
* Fixes issue where nav menu items and widgets were no longer working with selective refresh because cap check was failing.

See #27355.
Fixes #35926.

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


git-svn-id: http://core.svn.wordpress.org/trunk@36656 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 18:28:28 +00:00
..
ID3
SimplePie
Text
certificates HTTP API: Certificate bundle: Attempt to move a certificate lower in the file to allow older OpenSSL versions to parse it & communicate with WordPress.org securely again. 2016-02-18 08:21:28 +00:00
css TinyMCE, inline link dialog: 2016-02-24 06:20:26 +00:00
customize Customize: Allow controls to be registered without any associated settings. 2016-02-24 18:28:28 +00:00
fonts
images Embeds: Load the default site icon from the `wp-includes` directory. 2016-02-23 16:55:27 +00:00
js Media: Fix broken delete/trash functionality in the library after [36546]. 2016-02-24 16:03:26 +00:00
pomo Merge the changes to GlotPress's POMO from upstream to WordPress's copy. 2015-11-20 04:34:25 +00:00
random_compat Update Random_Compat to the latest version (1.1.6). 2016-01-30 00:57:28 +00:00
rest-api REST API: Use WP_REST_Request::from_url() when embedding. 2016-02-24 04:20:25 +00:00
theme-compat Theme Compat: Replace the custom comment form with `comment_form()` and reduce number of links. 2016-02-20 14:41:27 +00:00
widgets Customize: Prevent dropping backslashes from input on general settings and settings for nav menus and some widgets. 2016-02-23 01:02:26 +00:00
admin-bar.php Docs: Fix two incorrect notations of the `$show_admin_bar` global to specify a boolean type, not `WP_Admin_Bar`. 2016-02-20 21:27:26 +00:00
atomlib.php
author-template.php Networks and sites: Replace "blog" usage with "site" in docs. 2016-01-28 03:51:26 +00:00
bookmark-template.php
bookmark.php Docs: Add a missing notation for the `$bookmark_id` parameter in the DocBlock for `clean_bookmark_cache()`. 2015-12-18 23:01:28 +00:00
cache.php Networks and sites: Replace "blog" usage with "site" in docs. 2016-01-28 03:35:27 +00:00
canonical.php Canonical: Generate the correct canonical url for paged posts/pages when they're used as the page_on_front. 2016-01-09 07:33:27 +00:00
capabilities.php Docs: Add a note to the DocBlock for `current_user_can()` to explain that it will always return true for super admins, unless specifically denied. 2016-02-07 01:27:26 +00:00
category-template.php Taxonomy: Correct the accetped types for the `taxonomy` element in the arguments passed to `wp_dropdown_categories()`. 2016-01-13 20:16:29 +00:00
category.php Docs: Document the `$args` parameter for `get_categories()` as a hash notation. 2016-02-04 14:50:26 +00:00
class-IXR.php XMLRPC: Revert [35509] which caused a change of behviour in at least one XMLRPC client. 2015-12-31 04:06:26 +00:00
class-feed.php Docs: Various docblock corrections. 2016-01-10 01:26:25 +00:00
class-http.php Networks and sites: Replace "blog" usage with "site" in docs. 2016-01-28 03:35:27 +00:00
class-json.php The the Docs: Fix the the dittography 2015-12-06 21:23:25 +00:00
class-oembed.php Remove RDIO from oEmbed providers 2015-12-18 18:16:27 +00:00
class-phpass.php
class-phpmailer.php Upgrade PHPMailer from 5.2.10 to 5.2.14. 2015-12-24 01:59:26 +00:00
class-pop3.php
class-simplepie.php
class-smtp.php Upgrade PHPMailer from 5.2.10 to 5.2.14. 2015-12-24 01:59:26 +00:00
class-snoopy.php
class-walker-category-dropdown.php Docs: Document the `$id` parameter for `Walker_CategoryDropdown::start_el()`, which is implemented by `Walker` but unused in the subclass method. 2015-12-14 17:47:30 +00:00
class-walker-category.php Add `current-cat-ancestor` class to ancestor items in `wp_list_categories()`. 2015-12-18 18:38:25 +00:00
class-walker-comment.php Docs: Document the `$id` parameter for `Walker_Comment::start_el()`, which is implemented by `Walker` but unused in the subclass method. 2015-12-14 17:50:26 +00:00
class-walker-page-dropdown.php Docs: Add missing property and method summaries in DocBlocks for `Walker_PageDropdown`. 2015-12-16 16:36:28 +00:00
class-walker-page.php Docs: Move the hook doc for the `the_title` filter in `Walker_Page::start_el()` to directly precede the `apply_filters()` line. 2016-01-05 16:35:26 +00:00
class-wp-admin-bar.php Toolbar: Allow adding `lang` and `dir` attributes to toolbar items. 2015-12-06 21:37:25 +00:00
class-wp-ajax-response.php
class-wp-comment-query.php Allow comments to be queried by 'any' `post_type` or `post_status`. 2016-02-06 04:51:25 +00:00
class-wp-comment.php Comments: Correct description of `comment_author` property in WP_Comment class. 2016-01-17 15:00:27 +00:00
class-wp-customize-control.php Customize: Allow controls to be registered without any associated settings. 2016-02-24 18:28:28 +00:00
class-wp-customize-manager.php Docs: Add an inline `@see` tag to link up the `plugins_loaded` hook in the description for the `customize_loaded_components` filter. 2016-02-24 16:44:26 +00:00
class-wp-customize-nav-menus.php Customize: Allow controls to be registered without any associated settings. 2016-02-24 18:28:28 +00:00
class-wp-customize-panel.php Docs: Remove a duplicate `@static` tag from the `WP_Customize_Panel->instance_count` property DocBlock. 2016-02-18 00:14:26 +00:00
class-wp-customize-section.php
class-wp-customize-setting.php Docs: Use markdown instead of HTML for `code` formatting. 2016-02-23 19:18:27 +00:00
class-wp-customize-widgets.php Customize: Allow controls to be registered without any associated settings. 2016-02-24 18:28:28 +00:00
class-wp-editor.php TinyMCE, inline link dialog: 2016-02-24 06:20:26 +00:00
class-wp-embed.php Embeds: Remove the `allow_insecure_embeds` filter. 2015-11-19 05:02:27 +00:00
class-wp-error.php
class-wp-http-cookie.php
class-wp-http-curl.php Docs: Miscellaneous docblock corrections. 2015-12-23 06:31:27 +00:00
class-wp-http-encoding.php
class-wp-http-ixr-client.php
class-wp-http-proxy.php Networks and sites: Replace "blog" usage with "site" in docs. 2016-01-28 03:35:27 +00:00
class-wp-http-response.php
class-wp-http-streams.php Docs: Add missing parameter documentation for the `$args` parameter in the DocBlock for `WP_Http_Streams::test()`. 2015-12-14 23:54:26 +00:00
class-wp-image-editor-gd.php
class-wp-image-editor-imagick.php
class-wp-image-editor.php Media: Reduce default image compression quality to '82'. 2016-02-22 22:19:26 +00:00
class-wp-meta-query.php Docs: `WP_Meta_Query` accepts 'EXISTS' or 'NOT EXISTS' for `$compare`. 2016-02-22 03:56:27 +00:00
class-wp-metadata-lazyloader.php More performance improvements to metadata lazyloading. 2016-02-17 22:58:26 +00:00
class-wp-network.php Docs: Fix type documentation for `WP_Network` properties. 2016-01-18 02:59:27 +00:00
class-wp-oembed-controller.php oEmbed: Drop the trailing slash from the namespace. 2015-11-17 11:27:29 +00:00
class-wp-post.php
class-wp-rewrite.php Embeds: Allow embedding static front pages and pages having a child page with an `embed` slug. 2016-01-15 07:56:26 +00:00
class-wp-role.php Docs: Clarify documentation for `WP_Role::has_cap()` to more clearing indicate that the method checks for capabilities against the role rather than the user. 2015-12-14 20:05:27 +00:00
class-wp-roles.php Networks and sites: Replace "blog" usage with "site" in docs. 2016-01-28 03:35:27 +00:00
class-wp-site.php Docs: Make some minor improvements to inline docs for `WP_Site`, introduced in [36393]. 2016-02-07 02:13:26 +00:00
class-wp-tax-query.php Correct some `@param` doc names in the `WP_Tax_Query` and `WP_User_Query` classes. 2015-12-14 02:50:27 +00:00
class-wp-term.php Docs: Various docblock corrections. 2016-01-10 01:26:25 +00:00
class-wp-theme.php Themes: Improve error messages for broken themes. 2016-02-23 17:20:27 +00:00
class-wp-user-query.php Networks and sites: Replace "blog" usage with "site" in docs. 2016-01-28 03:51:26 +00:00
class-wp-user.php Networks and sites: Replace "blog" usage with "site" in docs. 2016-01-28 03:51:26 +00:00
class-wp-walker.php Avoid a PHP notice when trying to access the `post_parent` property of hierarchical post type nav menu items. 2015-12-12 01:06:29 +00:00
class-wp-widget-factory.php
class-wp-widget.php Introduce a `$parent_class` parameter for `_deprecated_constructor()`. 2016-02-16 23:20:26 +00:00
class-wp-xmlrpc-server.php Comments: In `wp_xmlrpc_server::pingback_ping()`: 2016-02-24 00:55:26 +00:00
class-wp.php In `WP::handle_404()` introduce a filter `pre_handle_404` to short-circuit default header status handling. 2016-02-23 16:08:25 +00:00
class.wp-dependencies.php Script Loader: Fix missing script output when the groups of dependencies are different. 2016-02-20 22:11:25 +00:00
class.wp-scripts.php Script Loader: Introduce `wp_add_inline_script()`. 2016-02-23 16:44:26 +00:00
class.wp-styles.php Styles: Pass the media attribute as an argument to the `style_loader_tag` filter. 2016-02-19 21:05:26 +00:00
comment-template.php More performance improvements to metadata lazyloading. 2016-02-17 22:58:26 +00:00
comment.php Comments: Pass comment data to the `comment_post` filter. 2016-02-24 00:49:26 +00:00
compat.php Docs: Fix one line of the DocBlock for the `JsonSerializable` compat interface to use a tab instead of spaces. 2016-02-07 01:18:27 +00:00
cron.php Docs: Adjust formatting for an added-parameter changelog entry in the hook doc for the `cron_request` filter. 2016-01-14 17:30:28 +00:00
date.php Docs: Remove some more dittography. 2015-12-06 21:50:25 +00:00
default-constants.php Revert [35804]. This change has unintended side effects, notably that media URLs in the admin area now unexpectedly use the `https` scheme. A more comprehensive approach will be taken in 4.5. 2015-12-22 13:02:29 +00:00
default-filters.php Authentication: Allow users to log in using their email address. 2016-02-22 23:15:27 +00:00
default-widgets.php
deprecated.php Replace `wp_upload_dir()` with the new `wp_get_upload_dir()` in all cases where a file is not being uploaded. Deprecate `_wp_upload_dir_baseurl()`, and replace it with `wp_get_upload_dir()`. 2016-02-18 00:24:27 +00:00
embed-template.php Embeds: Load the default site icon from the `wp-includes` directory. 2016-02-23 16:55:27 +00:00
embed.php Embeds: Only display an iframe when it was successfully loaded. 2016-02-23 20:23:25 +00:00
feed-atom-comments.php
feed-atom.php
feed-rdf.php
feed-rss.php
feed-rss2-comments.php
feed-rss2.php
feed.php Docs: `@param` fixes for a variety of docblocks. 2016-01-09 01:45:26 +00:00
formatting.php Formatting: Avoid a PHP warning when `wptexturize()` is called with a trailing less-than symbol. 2016-02-18 20:31:27 +00:00
functions.php Docs: Correct `$number` type in `number_format_i18n()`. 2016-02-23 18:44:26 +00:00
functions.wp-scripts.php Script Loader: Introduce `wp_add_inline_script()`. 2016-02-23 16:44:26 +00:00
functions.wp-styles.php Styles: Clarify the allowed values for the `$media` parameter of `wp_register_style()`/`wp_enqueue_style()`. 2016-02-23 20:41:26 +00:00
general-template.php Make Custom Taxonomy Feeds Auto-discoverable 2016-02-24 02:36:25 +00:00
http.php HTTP: `0.1.2.3` is not a valid IP. 2016-02-02 12:55:29 +00:00
kses.php Docs: Use the correct parameter name in the DocBlock for `wp_kses_post_deep()`, introduced in [36429]. 2016-02-07 00:18:26 +00:00
l10n.php i18n: Prevent `is_textdomain_loaded()` from returning true even if there are no translations for the domain. 2016-02-16 21:15:29 +00:00
link-template.php Make `$taxonomy` parameter optional in `get_edit_term_link()`. 2016-02-23 20:07:28 +00:00
load.php Don't display errors during Ajax requests. 2016-02-18 16:43:27 +00:00
locale.php Docs: Add a missing summary to the DocBlock for `WP_Locale::rtl_src_admin_notice()`. 2015-12-16 18:08:26 +00:00
media-template.php
media.php Replace `wp_upload_dir()` with the new `wp_get_upload_dir()` in all cases where a file is not being uploaded. Deprecate `_wp_upload_dir_baseurl()`, and replace it with `wp_get_upload_dir()`. 2016-02-18 00:24:27 +00:00
meta.php More performance improvements to metadata lazyloading. 2016-02-17 22:58:26 +00:00
ms-blogs.php Networks and sites: Replace "blog" usage with "site" in docs. 2016-01-28 03:35:27 +00:00
ms-default-constants.php
ms-default-filters.php
ms-deprecated.php Docs: `@param` fixes for a variety of docblocks. 2016-01-09 01:45:26 +00:00
ms-files.php
ms-functions.php Networks and Sites: Clarify the docblock for `get_current_site()` so it's clear that it returns the current network object, not anything to do with the current site. As a further exercise, the reader is invited to fix the nomenclature surrounding blogs, sites, and networks in WordPress. 2016-01-14 00:02:25 +00:00
ms-load.php I18N: Move translatable Codex URLs to separate strings in `wp-includes/ms-load.php`. 2015-11-18 17:42:26 +00:00
ms-settings.php Multisite: Introduce the WP_Site class. 2016-01-25 21:51:26 +00:00
nav-menu-template.php Menus: Bring back line break between menu items. 2015-12-24 00:21:27 +00:00
nav-menu.php Docs: Use markdown instead of HTML for `code` formatting. 2016-02-23 19:18:27 +00:00
option.php Clarify return types in `get_option()` documentation. 2016-01-09 03:12:26 +00:00
pluggable-deprecated.php Users: Introduce `_wp_get_current_user()` for improved backward compatibility. 2016-02-23 22:26:28 +00:00
pluggable.php Mail: Correct `compact()` usage in `wp_mail()`. 2016-02-24 17:38:27 +00:00
plugin.php Docs: Fix indentation in `add_filter()` example. 2016-01-25 18:58:27 +00:00
post-formats.php
post-template.php Forms: Swap "Submit" button label for "Enter" on password-protected pages. 2016-02-24 16:25:25 +00:00
post-thumbnail-template.php
post.php Posts: Introduce `get_post_types_by_support()`. 2016-02-23 22:50:26 +00:00
query.php Query: Search should match `post_excerpt` in addition to title and content. 2016-02-23 20:14:26 +00:00
registration-functions.php
registration.php
rest-api.php REST API: Add helper function to get server instance. 2016-02-16 01:12:26 +00:00
revision.php Revisions: Clean up `_wp_post_revision_fields()`: 2016-02-24 00:44:59 +00:00
rewrite.php Embeds: Allow embedding static front pages and pages having a child page with an `embed` slug. 2016-01-15 07:56:26 +00:00
rss-functions.php
rss.php
script-loader.php External Libraries: Update jQuery to 1.12.1. 2016-02-24 15:44:26 +00:00
session.php Docs: `@param` fixes for a variety of docblocks. 2016-01-09 01:45:26 +00:00
shortcodes.php Shortcodes: `=` is a reserved character in shortcode names, mark it as such. 2015-12-26 04:46:28 +00:00
taxonomy.php Docs: Improve description of `get_term()` return value. 2016-02-23 16:48:25 +00:00
template-loader.php Themes: Show template loading error to users with `switch_themes` cap. 2016-01-18 19:57:26 +00:00
template.php Comments: The year is 2003. Permalinks are a new thing and everyone's using Blogger. It's a time when opening a modal window in JavaScript to view a section of a website is not a completely weird thing, although many users get annoyed by it. b2 has recently become WordPress, and with it comes a bunch of functionality that will become stale over the next decade, remnants of simpler times. 2015-12-10 03:06:30 +00:00
theme.php Themes: Use the attachment ID as the key in `get_uploaded_header_images()`. 2016-02-16 22:12:27 +00:00
update.php Updates: Pass locales of all available languages to the themes/plugins update API. 2016-02-23 16:17:26 +00:00
user.php Users: Introduce `_wp_get_current_user()` for improved backward compatibility. 2016-02-23 22:26:28 +00:00
vars.php
version.php Customize: Allow controls to be registered without any associated settings. 2016-02-24 18:28:28 +00:00
widgets.php Widgets: Avoid a PHP notice in `is_dynamic_sidebar()` is a sidebar is registered but does not yet have an index in the `sidebars_widgets` option. 2016-02-24 01:37:26 +00:00
wlwmanifest.xml
wp-db.php Docs: Add an `@access` tag and fix a typo in the DocBlock for `wpdb::close()`. 2016-02-07 02:03:26 +00:00
wp-diff.php