WordPress/wp-includes
Jeremy Felt 3c2273ef45 MS: Introduce `*_network_option` functions.
Introduces `add_network_option()`, `update_network_option()`, `get_network_option()`, and `delete_network_option()`, which use the internals previously found in the `*_site_option()` functions and allow for a network ID to enable cross network storage and retrieval of network options.

* `*_site_option()` functions are now wrappers for `*_network_option()` and will interact with options for the current network in a multisite environment.
* All will continue to fallback to `*_option()` for non-multisite uses.
* Adds basic tests for cross network storage and retrieval.
* Existing tests for `*_site_option()` functions provide coverage for storage and retrieval of current network options.

Props spacedmonkey, DrewAPicture, jeremyfelt.
See #28290.

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


git-svn-id: http://core.svn.wordpress.org/trunk@34742 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-02 18:01:27 +00:00
..
ID3 Update getID3 to 1.9.9 2015-06-28 00:17:25 +00:00
SimplePie `callback` is not a valid type in PHP, PSR-5, or phpDocumentor. `callable` should be used instead. 2015-09-25 23:58:25 +00:00
Text Deprecate php4 style constructors 2015-06-28 15:27:24 +00:00
certificates HTTP: Update the Root Certificate bundle. 2015-09-18 08:43:26 +00:00
css Update links to the user profile editing screen in the admin toolbar when the current logged in user has no role on the current site. Covers single site and Multisite and introduces tests. 2015-09-14 17:10:26 +00:00
fonts Dashicons: Fix font ID in SVG file. 2015-07-23 10:03:24 +00:00
images Smilies: Update our few remaining smilies to better align with Twemoji, and add frownie.png until Twemoji provide a build containing it. 2015-04-10 06:20:26 +00:00
js MediaElement, update `wp-mediaelement.js`: 2015-09-20 03:17:24 +00:00
pomo Pass `false` as the 2nd argument to `class_exists()` to disable autoloading and to not cause problems for those who define `__autoload()`. 2015-09-20 03:52:25 +00:00
theme-compat Theme Compat: Remove two strings from `comments-popup.php`. 2015-09-20 08:49:27 +00:00
widgets RSS Widget: add a class, `rss-widget-icon`, to the RSS icon to allow devs to hide it. Not going to remove to not break visual BC. 2015-09-29 04:32:25 +00:00
admin-bar.php Pass `false` as the 2nd argument to `class_exists()` to disable autoloading and to not cause problems for those who define `__autoload()`. 2015-09-20 03:52:25 +00:00
atomlib.php Deprecate php4 style constructors 2015-06-28 15:27:24 +00:00
author-template.php Introduce `get_the_author_posts_link()`, which returns the HTML link to the author page for the current post's author. 2015-09-29 01:49:25 +00:00
bookmark-template.php Sanitize the class passed to `wp_list_bookmarks()` and allow passing an array. 2015-06-22 20:55:28 +00:00
bookmark.php After [33843], update the location of some files in `This filter is documented in` docs 2015-09-08 22:17:26 +00:00
cache.php Docs: Improve documentation for the `WP_Object_Cache` class. 2015-09-16 10:03:26 +00:00
canonical.php Canonical: remove unused code (commented-out) from `redirect_canonical()`. 2015-10-01 05:09:50 +00:00
capabilities-functions.php Docs: The Users subpackage is plural. 2015-09-22 13:46:25 +00:00
capabilities.php Docs: The Users subpackage is plural. 2015-09-22 13:46:25 +00:00
category-functions.php Docs: Clarify the file header summary and subpackage for wp-includes/category-functions.php, introduced in [34110]. 2015-09-22 14:21:23 +00:00
category-template.php Fix 'exclude_tree' in `wp_list_categories()`. 2015-09-29 19:12:27 +00:00
category.php Docs: Clarify the file header for wp-includes/category.php. 2015-09-22 14:20:24 +00:00
class-IXR.php XML-RPC: `IXR_Server::output()` is notoriously bad at returning the right value for the `Content-Length` HTTP header. This header is not required, so we will remove it. 2015-09-26 03:11:24 +00:00
class-feed.php Pass `false` as the 2nd argument to `class_exists()` to disable autoloading and to not cause problems for those who define `__autoload()`. 2015-09-20 03:52:25 +00:00
class-http.php Docs: object != class 2015-09-26 07:04:28 +00:00
class-json.php Docs: Put "it's" in its place (again). 2015-09-16 12:46:28 +00:00
class-oembed.php Docs: Slightly improve the readability of the data table in the DocBlock description for the `oembed_providers` hook by centering the HTTPS column. 2015-09-27 22:11:48 +00:00
class-phpass.php Deprecate php4 style constructors 2015-06-28 15:27:24 +00:00
class-phpmailer.php Remove debug cruft from [33124]. 2015-07-09 07:56:24 +00:00
class-pop3.php Docs: Put "it's" in its place (again). 2015-09-16 12:46:28 +00:00
class-simplepie.php Pass `false` as the 2nd argument to `class_exists()` to disable autoloading and to not cause problems for those who define `__autoload()`. 2015-09-20 03:52:25 +00:00
class-smtp.php Update PHPMailer to 5.2.10 from 5.2.7. 2015-07-08 17:16:25 +00:00
class-snoopy.php Pass `false` as the 2nd argument to `class_exists()` to disable autoloading and to not cause problems for those who define `__autoload()`. 2015-09-20 03:52:25 +00:00
class-walker-category-dropdown.php Docs: Clarify the file header for wp-includes/class-walker-category-dropdown.php, introduced in [34110]. 2015-09-22 14:03:25 +00:00
class-walker-category.php Docs: Clarify the file header summary for wp-includes/class-walker-category.php, introduced in [34110]. 2015-09-22 14:01:25 +00:00
class-walker-comment.php Docs: The Comment API is singular. 2015-09-22 13:43:25 +00:00
class-walker-page-dropdown.php Docs: Clarify the file header subpackage for wp-includes/class-walker-page-dropdown.php, introduced in [34109]. 2015-09-22 13:58:24 +00:00
class-walker-page.php Docs: Actually, the subpackage for `Walker_Page` should be Template. 2015-09-22 15:09:24 +00:00
class-wp-admin-bar.php Toolbar: Disambiguate links to the dashboard vs. to the customizer. 2015-07-08 20:03:24 +00:00
class-wp-ajax-response.php
class-wp-comment-query.php Prevent extra db queries in `WP_Comment::get_children()`. 2015-10-01 03:58:23 +00:00
class-wp-comment.php Prevent extra db queries in `WP_Comment::get_children()`. 2015-10-01 03:58:23 +00:00
class-wp-customize-control.php Customizer: make "Current header" clickable in the same way that "Background Image" is - will open the media modal. 2015-09-29 21:40:24 +00:00
class-wp-customize-manager.php Customize: Flesh out phpdoc for `WP_Customize_Manager`. 2015-09-19 06:40:26 +00:00
class-wp-customize-nav-menus.php Customizer: Use the plural label for available menu item types. 2015-09-24 09:16:25 +00:00
class-wp-customize-panel.php Customize: Remove redundant `aria-label` attributes. 2015-09-13 06:16:26 +00:00
class-wp-customize-section.php Round 2 of: We should use ellipses … / … instead of three dots/periods ... e.g Loading… not Loading... 2015-09-09 04:39:25 +00:00
class-wp-customize-setting.php Add Customizer docs. 2015-09-05 19:53:24 +00:00
class-wp-customize-widgets.php Customizer: Defer embedding widget controls to improve DOM performance and initial load time. 2015-09-25 21:02:27 +00:00
class-wp-editor.php Docs: There are quite alot of typos in core inline comments. 2015-09-30 04:13:48 +00:00
class-wp-embed.php `foreach` is a statement, not a function. 2015-08-25 20:28:22 +00:00
class-wp-error.php Use `void` instead of `null` where appropriate when pipe-delimiting `@return` types. If a `@return` only contains `void`, remove it. 2015-05-24 05:40:25 +00:00
class-wp-http-cookie.php Docs: object != class 2015-09-26 07:04:28 +00:00
class-wp-http-curl.php Don't set `CURLOPT_CAINFO` when `sslverify` is false when sending HTTP API requests through cURL. This avoids sending redundant information to cURL, and avoids a bug in Apple's SecureTransport library which causes a request to fail when a CA bundle is set but certificate verification is disabled. 2015-09-27 21:37:24 +00:00
class-wp-http-encoding.php Docs: Add a missing file header for wp-includes/class-wp-http-encoding.php, introduced in [33748]. 2015-09-03 03:28:21 +00:00
class-wp-http-ixr-client.php Docs: Update the hook doc summary for the `wp_http_ixr_client_headers` filter, introduced in [34164]. 2015-09-15 16:16:43 +00:00
class-wp-http-proxy.php Docs: Add a missing file header to wp-includes/class-wp-http-proxy.php, introduced in [33748]. 2015-09-03 03:30:21 +00:00
class-wp-http-streams.php Docs: object != class 2015-09-26 07:04:28 +00:00
class-wp-image-editor-gd.php Replace `@returns` with `@return` in PHP docblocks. 2015-07-02 21:05:24 +00:00
class-wp-image-editor-imagick.php Pass `false` as the 2nd argument to `class_exists()` to disable autoloading and to not cause problems for those who define `__autoload()`. 2015-09-20 03:52:25 +00:00
class-wp-image-editor.php `foreach` is a statement, not a function. 2015-08-25 20:28:22 +00:00
class-wp-meta-query.php Docs: Add a file header to wp-includes/class-wp-meta-query.php, introduced in [33761]. 2015-09-22 13:26:23 +00:00
class-wp-network.php Docs: object != class 2015-09-26 07:04:28 +00:00
class-wp-post.php Docs: Add a file header to wp-includes/class-wp-post.php, introduced in [33759]. 2015-09-22 13:10:24 +00:00
class-wp-rewrite.php Rewrite: allow `add_rewrite_rule|WP_Rewrite::add_rule()` to accept an associative array for the value of `$redirect` instead of requiring a query string. 2015-09-30 01:11:25 +00:00
class-wp-role.php Docs: The Users subpackage is plural. 2015-09-22 13:46:25 +00:00
class-wp-roles.php Docs: The Users subpackage is plural. 2015-09-22 13:46:25 +00:00
class-wp-tax-query.php Docs: Add a file header to wp-includes/class-wp-tax-query.php, introduced in [33760]. 2015-09-22 13:16:30 +00:00
class-wp-theme.php Docs: Fix some syntactical issues with the DocBlock for the `WP_Theme->update` property, introduced in [33957]. 2015-09-16 13:29:25 +00:00
class-wp-user-query.php Introduce 'paged' parameter for `WP_User_Query`. 2015-09-25 04:26:29 +00:00
class-wp-user.php Users: in `WP_User::__unset()`, don't reset the deprecated prop `id` to `ID`. Still throw the deprecated notice. 2015-09-24 00:49:25 +00:00
class-wp-walker.php Docs: Add missing parameter and return descriptions for `Walker::get_number_of_root_elements()`. 2015-09-14 15:33:27 +00:00
class-wp-widget-factory.php Docs: The Widgets subpackage is plural. 2015-09-22 13:48:25 +00:00
class-wp-widget.php Docs: Improve the method docs for the `widget()`, `update()`, `form()`, and `__construct()` methods in the `WP_Widget` base class. 2015-09-25 20:31:24 +00:00
class-wp-xmlrpc-server.php XML-RPC: calculate the proper offset for GMT in `wp.newPost`, `mw.newPost`, and `mw.editPost` when `post_date` is set, `wp.editComment` when `comment_date` is set. `post|comment_date` is assumed to be GMT. This is only true if the timezone string for the site matches GMT. 2015-09-29 04:05:24 +00:00
class-wp.php Docs: Fix some syntatical issues in the DocBlock for `WP::send_headers()` following [34632]. 2015-09-27 18:49:29 +00:00
class.wp-dependencies.php `foreach` is a statement, not a function. 2015-08-25 20:28:22 +00:00
class.wp-scripts.php After [32656], add `@access` annotations to methods that have no doc block in `wp-includes/*`. 2015-05-29 21:37:24 +00:00
class.wp-styles.php Add a missing `$html` parameter variable in the hook docs for the `style_loader_tag` filter. 2015-07-13 21:03:24 +00:00
comment-functions.php Comments: Trash blacklisted comments by default. 2015-10-01 01:49:25 +00:00
comment-template.php Ensure that comment permalinks reflect pagination. 2015-10-01 05:13:25 +00:00
comment.php Docs: The Comment API is singular. 2015-09-22 13:44:25 +00:00
compat.php Add doc blocks to functions that are missing them. 2015-05-31 03:18:25 +00:00
cron.php Cron: In `spawn_cron()`, when using `ALTERNATE_WP_CRON`, return early for any non-`GET`, instead of naively checking `! empty( $_POST )`. 2015-09-26 04:51:26 +00:00
date.php Simplify the weeks-per-year calculation `WP_Date_Query::validate_date_values()`. 2015-08-29 01:47:21 +00:00
default-constants.php After [33698], wrap the time constants in a DocBlock template. 2015-08-25 21:21:21 +00:00
default-filters.php Improve lazyloading of comment meta in `WP_Query` loops. 2015-09-30 01:35:26 +00:00
default-widgets.php Docs: Clarify the file header summary for wp-includes/default-widgets.php, the top-level file for bringing in the core widget classes. 2015-09-22 13:36:25 +00:00
deprecated.php Docs: Add an `@see` reference for the "use-instead-of" function in the DocBlock for `force_ssl_login()`, deprecated in [34700]. 2015-09-29 22:46:25 +00:00
feed-atom-comments.php `if` is a statment, not a function. 2015-06-16 20:01:25 +00:00
feed-atom.php
feed-rdf.php
feed-rss.php Serve RSS feeds with the proper mime-type: `application/rss+xml`. The reason for hacking around browsers by using `text/xml` appears to no longer be relevant. 2015-05-09 06:39:24 +00:00
feed-rss2-comments.php Feeds: Revert [32765] because of objections raised in #4575. 2015-07-15 19:58:24 +00:00
feed-rss2.php Feeds: Revert [32765] because of objections raised in #4575. 2015-07-15 19:58:24 +00:00
feed.php Docs: Make a minor adjustment to the description syntax for the optional `$comment` argument in the DocBlock for `comment_link()`, introduced in [34071]. 2015-09-16 11:02:24 +00:00
formatting.php Docs: Remove documentation for a phantom parameter not actually passed to the `is_email` filter. 2015-10-02 07:03:25 +00:00
functions.php Deprecate `force_ssl_login()`, which is simply a wrapper for `force_ssl_admin()` and is not used in core. 2015-09-29 21:28:50 +00:00
functions.wp-scripts.php After [32596] and [32597], ensure that `wp_scripts|styles()` is called to ensure an instance is created of `WP_Scripts|Styles()` before calling `->do_items()`. 2015-06-12 16:54:24 +00:00
functions.wp-styles.php After [32596] and [32597], ensure that `wp_scripts|styles()` is called to ensure an instance is created of `WP_Scripts|Styles()` before calling `->do_items()`. 2015-06-12 16:54:24 +00:00
general-template.php Docs: Move the hook doc to once again directly precede the hook line for the `getarchives_where` filter following [34686]. 2015-09-29 06:39:25 +00:00
http-functions.php HTTP: Add some new Cookie helper functions: 2015-09-22 03:14:25 +00:00
http.php Docs: Add inline DocBlocks for the `require_once()` calls that now bring in top-level HTTP API functionality and HTTP API classes. 2015-09-03 04:36:30 +00:00
kses.php Allow these CSS properties in KSES: `min-height', 'max-height', 'min-width', 'max-width'` 2015-08-25 21:46:20 +00:00
l10n.php Docs: Link up a hook reference with an inline `@see` tag in the return description for `get_locale()`. 2015-09-24 05:51:23 +00:00
link-template.php Docs: There are quite alot of typos in core inline comments. 2015-09-30 04:13:48 +00:00
load.php Send a 500 HTTP response code when the server's PHP or MySQL checks fail. 2015-09-23 21:57:26 +00:00
locale.php Docs: Add a summary, version, and `@access` tag to the property DocBlock for `WP_Locale->number_format`. 2015-09-24 13:26:24 +00:00
media-template.php After [34048], restore the `else` statement for `h` (height of video) in `wp_underscore_video_template()`. 2015-09-11 18:30:26 +00:00
media.php After [34629], use `$size_class` instead of `$size`. 2015-09-28 02:50:24 +00:00
meta-functions.php Docs: Clarify the file header summary for wp-includes/meta-functions.php, introduced in [33761]. 2015-09-22 13:27:24 +00:00
meta.php Docs: Clarify the file header summary for wp-includes/meta.php, the top-level file for the core Meta API. 2015-09-22 13:30:24 +00:00
ms-blogs.php Fix doc blocks for `ms-*.php` files. 2015-05-26 21:51:31 +00:00
ms-default-constants.php Fix doc blocks for `ms-*.php` files. 2015-05-26 21:51:31 +00:00
ms-default-filters.php Move new user notification emails to `add_action()` callbacks. 2015-09-16 22:19:24 +00:00
ms-deprecated.php Deprecate `get_admin_users_for_domain()`. This function has never been used in core. 2015-10-01 22:27:24 +00:00
ms-files.php `if` is a statment, not a function. 2015-06-16 20:01:25 +00:00
ms-functions.php Deprecate `get_admin_users_for_domain()`. This function has never been used in core. 2015-10-01 22:27:24 +00:00
ms-load.php Multisite: Implement the `get_by_path` method in `WP_Network`. 2015-09-13 23:40:24 +00:00
ms-settings.php Multisite: Implement the `get_by_path` method in `WP_Network`. 2015-09-13 23:40:24 +00:00
nav-menu-template.php Add a `nav_menu_item_title` filter for filtering nav menu item titles. 2015-09-28 18:41:26 +00:00
nav-menu.php Introduce the `wp_add_nav_menu_item` action, fired immediately after a new nav menu item has been added. 2015-10-02 06:46:24 +00:00
option.php MS: Introduce `*_network_option` functions. 2015-10-02 18:01:27 +00:00
pluggable-deprecated.php Pass `false` as the 2nd argument to `class_exists()` to disable autoloading and to not cause problems for those who define `__autoload()`. 2015-09-20 03:52:25 +00:00
pluggable.php Pass `false` as the 2nd argument to `class_exists()` to disable autoloading and to not cause problems for those who define `__autoload()`. 2015-09-20 03:52:25 +00:00
plugin.php `callback` is not a valid type in PHP, PSR-5, or phpDocumentor. `callable` should be used instead. 2015-09-25 23:58:25 +00:00
post-formats.php `foreach` is a statement, not a function. 2015-08-25 20:28:22 +00:00
post-functions.php Posts: In `wp_insert_post()`, don't set `post_date` to current time if it can be derived from a passed value for `post_date_gmt`. 2015-10-02 04:36:24 +00:00
post-template.php Docs: Fix a few syntatical issues with inline documentation in wp-includes/post-template.php. 2015-10-02 06:38:26 +00:00
post-thumbnail-template.php Update `get_the_post_thumbnail_url()` so it returns false on failure, to bring it inline with `wp_get_attachment_image_url()`. Correct and introduce new tests. 2015-09-28 15:34:25 +00:00
post.php Docs: Clarify the file header summary for wp-includes/post.php, the top-level file for the Post API. 2015-09-22 13:13:26 +00:00
query.php Correct some `WP_Query` metadata lazyloading docs. 2015-10-01 04:01:48 +00:00
registration-functions.php
registration.php
revision.php `foreach` is a statement, not a function. 2015-08-25 20:28:22 +00:00
rewrite-constants.php Docs: Clarify the file header summary for wp-includes/rewrite-constants.php, introduced in [33751]. 2015-09-04 01:52:24 +00:00
rewrite-functions.php Docs: Mark a few optional parameters as such in wp-includes/rewrite-functions.php. 2015-09-30 02:42:26 +00:00
rewrite.php Rewrite: move `WP_Rewrite` into its own file. `rewrite.php` loads the new files, so this is 100% BC if someone is loading `rewrite.php` directly. New files created using `svn cp`. 2015-08-26 04:42:20 +00:00
rss-functions.php
rss.php `foreach` is a statement, not a function. 2015-08-25 20:28:22 +00:00
script-loader.php List Tables: add JS code to dynamically toggle the `disabled` attribute of the Bulk Actions dropdown and Apply button. 2015-09-24 01:07:24 +00:00
session.php Fix some internal types that are passed to functions to avoid changing the acceptable types passed as arguments to those functions: 2015-01-16 22:51:21 +00:00
shortcodes.php Shortcodes/Formatting: Add PCRE Performance Testing 2015-10-02 04:26:25 +00:00
taxonomy-functions.php Bail out of termmeta functions if schema is not up-to-date. 2015-09-30 04:53:25 +00:00
taxonomy.php Docs: Clarify the file header summary for wp-includes/taxonomy.php, the top-level file for the core Taxonomy API. 2015-09-22 13:23:25 +00:00
template-loader.php Add singular.php to template hierarchy 2015-06-18 19:01:26 +00:00
template.php Docs: Update the DocBlock descriptions for a variety of template functions to better reflect that the dynamic `$type_template` hook can be used to filter the template path. 2015-07-14 22:27:24 +00:00
theme.php Customizer: Flesh out phpdoc description for `_wp_customize_include()`. 2015-09-25 19:36:25 +00:00
update.php Add missing doc blocks to `update.php`: 2015-05-28 15:29:28 +00:00
user-functions.php Users: Add the default arguments array as a second parameter to the `wp_dropdown_users_args` filter, introduced in [34692]. 2015-09-29 22:39:25 +00:00
user.php Docs: The User API is singular. 2015-09-22 13:03:24 +00:00
vars.php Introduce a new `$is_edge` global for the Microsoft Edge browser. 2015-09-05 22:33:23 +00:00
version.php MS: Introduce `*_network_option` functions. 2015-10-02 18:01:27 +00:00
widget-functions.php `callback` is not a valid type in PHP, PSR-5, or phpDocumentor. `callable` should be used instead. 2015-09-25 23:58:25 +00:00
widgets.php Docs: Clarify the file header summary for wp-includes/widgets.php, the top-level file for the core Widgets API. 2015-09-03 03:14:20 +00:00
wlwmanifest.xml
wp-db.php WPDB: Allow `null` values in the CRUD functions. 2015-10-01 05:37:26 +00:00
wp-diff.php Pass `false` as the 2nd argument to `class_exists()` to disable autoloading and to not cause problems for those who define `__autoload()`. 2015-09-20 03:52:25 +00:00