WordPress/wp-admin/includes
Felix Arntz 9e2e491f1f Multisite: Complete the new CRUD API for managing sites.
New functions `wp_insert_site( $data )`, `wp_update_site( $id, $data )` and `wp_delete_site( $id )` are introduced to manage site rows in the `wp_blogs` table, forming the new CRUD API together with the existing `get_site()` / `get_sites()`. The new API provides various benefits over the previously existing API, fixing several cache invalidation issues and being hook-driven so that normalization and validation of the passed data can be fully customized.

New hooks introduced as part of this are the actions `wp_insert_site`, `wp_update_site`, `wp_delete_site`, `wp_validate_site_data` and the filter `wp_normalize_site_data`.

At this point, `wp_insert_site()` does not handle setting up the site's database tables, and `wp_delete_site()` does not handle dropping the site's database tables, so the two can not yet be used directly as full replacements of `wpmu_create_blog()` and `wpmu_delete_blog()`. Managing the site's database tables will be added via hooks as part of the follow-up ticket #41333.

The existing functions `wpmu_create_blog()`, `update_blog_details()`, and `wpmu_delete_blog()` make use of the respective new counterpart and will be obsolete once #41333 has been completed.

Props flixos90, jeremyfelt, spacedmonkey.
Fixes #40364.

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


git-svn-id: http://core.svn.wordpress.org/trunk@43377 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-08-01 13:06:26 +00:00
..
admin-filters.php Privacy: Enable pagination screen options for privacy requests list tables. 2018-07-17 16:04:24 +00:00
admin.php Code is Poetry. 2017-11-30 23:11:00 +00:00
ajax-actions.php Privacy: Avoid a PHP notice in wp_ajax_wp_privacy_erase_personal_data(), make sure $eraser_key is always defined. 2018-05-10 20:24:23 +00:00
bookmark.php Docs: Document many more parameters and properties using typed array notation. 2018-03-22 20:27:32 +00:00
class-automatic-upgrader-skin.php Code is Poetry. 2017-11-30 23:11:00 +00:00
class-bulk-plugin-upgrader-skin.php Docs: Correct method reference in a comment for Bulk_Plugin_Upgrader_Skin::$plugin_info. 2018-03-23 00:34:29 +00:00
class-bulk-theme-upgrader-skin.php Docs: Document many more parameters and properties using typed array notation. 2018-03-22 20:27:32 +00:00
class-bulk-upgrader-skin.php I18N: Use the actual placeholder instead of a number in translator comments if the corresponding string does not use numbered placeholders. 2018-03-11 16:44:34 +00:00
class-core-upgrader.php Upgrade/Install: Fix the format of the upgrader_process_complete actions after [42343]. 2018-03-05 21:44:30 +00:00
class-file-upload-upgrader.php Code is Poetry. 2017-11-30 23:11:00 +00:00
class-ftp-pure.php FTP: ensure that there is only one class named ftp, which is what is expected in the loading of this arcane library. This ensures that an autoload generator, something along the lines of Composer, won't hiccup when it gets to these files. 2016-08-26 18:47:29 +00:00
class-ftp-sockets.php FTP: ensure that there is only one class named ftp, which is what is expected in the loading of this arcane library. This ensures that an autoload generator, something along the lines of Composer, won't hiccup when it gets to these files. 2016-08-26 18:47:29 +00:00
class-ftp.php Bootstrap: do not go gentle into that good night r38411, r38412, and parts of r38389. 2016-08-31 16:31:29 +00:00
class-language-pack-upgrader-skin.php Docs: Document many more parameters and properties using typed array notation. 2018-03-22 20:27:32 +00:00
class-language-pack-upgrader.php Docs: Document many more parameters and properties using typed array notation. 2018-03-22 20:27:32 +00:00
class-pclzip.php Filesystem API: Ensure memory limit calculations by PclZip are using integers. 2016-07-19 11:55:30 +00:00
class-plugin-installer-skin.php Docs: Document many more parameters and properties using typed array notation. 2018-03-22 20:27:32 +00:00
class-plugin-upgrader-skin.php Docs: Document many more parameters and properties using typed array notation. 2018-03-22 20:27:32 +00:00
class-plugin-upgrader.php Docs: Standardise and correct documentation relating to parameters which accept plugin names. 2018-03-05 21:50:31 +00:00
class-theme-installer-skin.php Docs: Document many more parameters and properties using typed array notation. 2018-03-22 20:27:32 +00:00
class-theme-upgrader-skin.php Docs: Document many more parameters and properties using typed array notation. 2018-03-22 20:27:32 +00:00
class-theme-upgrader.php Docs: Document many more parameters and properties using typed array notation. 2018-03-22 20:27:32 +00:00
class-walker-category-checklist.php Code is Poetry. 2017-11-30 23:11:00 +00:00
class-walker-nav-menu-checklist.php Code is Poetry. 2017-11-30 23:11:00 +00:00
class-walker-nav-menu-edit.php Code is Poetry. 2017-11-30 23:11:00 +00:00
class-wp-ajax-upgrader-skin.php General: Introduce WP_Error::has_errors() method and use it where appropriate. 2018-02-27 02:31:31 +00:00
class-wp-automatic-updater.php Docs: Add missing brace in auto_update_{$type} filter DocBlock. 2018-03-11 10:30:33 +00:00
class-wp-comments-list-table.php Docs: Document many more parameters and properties using typed array notation. 2018-03-22 20:27:32 +00:00
class-wp-community-events.php Docs: Update @since versions in Community Events class added in [42726]. 2018-06-28 02:34:04 +00:00
class-wp-filesystem-base.php Code is Poetry. 2017-11-30 23:11:00 +00:00
class-wp-filesystem-direct.php Code is Poetry. 2017-11-30 23:11:00 +00:00
class-wp-filesystem-ftpext.php Code is Poetry. 2017-11-30 23:11:00 +00:00
class-wp-filesystem-ftpsockets.php Code is Poetry. 2017-11-30 23:11:00 +00:00
class-wp-filesystem-ssh2.php Code is Poetry. 2017-11-30 23:11:00 +00:00
class-wp-importer.php Import: Avoid counting an uncountable type when reading arguments passed to a script. 2018-03-02 17:17:31 +00:00
class-wp-internal-pointers.php Privacy: Don't show privacy feature pointer to new users. 2018-05-14 15:50:22 +00:00
class-wp-links-list-table.php Code is Poetry. 2017-11-30 23:11:00 +00:00
class-wp-list-table-compat.php Code is Poetry. 2017-11-30 23:11:00 +00:00
class-wp-list-table.php Accessibility: Better color contrast for the tables pagination links. 2018-04-29 16:25:21 +00:00
class-wp-media-list-table.php Privacy: Move "Mine" filter for media items above "Trash". 2018-05-01 21:47:21 +00:00
class-wp-ms-sites-list-table.php Multisite: Count users in a more performant way when listing sites in the network admin. 2018-06-28 02:45:03 +00:00
class-wp-ms-themes-list-table.php Docs: Document many more parameters and properties using typed array notation. 2018-03-22 20:27:32 +00:00
class-wp-ms-users-list-table.php Docs: Document many more parameters and properties using typed array notation. 2018-03-22 20:27:32 +00:00
class-wp-plugin-install-list-table.php Plugins: Disable "Install Now" button for plugins that require a higher version of PHP or WordPress. 2018-07-09 13:45:25 +00:00
class-wp-plugins-list-table.php Docs: Document many more parameters and properties using typed array notation. 2018-03-22 20:27:32 +00:00
class-wp-post-comments-list-table.php Code is Poetry. 2017-11-30 23:11:00 +00:00
class-wp-posts-list-table.php Docs: Document many more parameters and properties using typed array notation. 2018-03-22 20:27:32 +00:00
class-wp-screen.php Docs: Document many more parameters and properties using typed array notation. 2018-03-22 20:27:32 +00:00
class-wp-site-icon.php Docs: Document many more parameters and properties using typed array notation. 2018-03-22 20:27:32 +00:00
class-wp-terms-list-table.php Taxonomy: Introduce is_taxonomy_viewable(). 2018-07-03 10:29:28 +00:00
class-wp-theme-install-list-table.php Docs: Document many more parameters and properties using typed array notation. 2018-03-22 20:27:32 +00:00
class-wp-themes-list-table.php Code is Poetry. 2017-11-30 23:11:00 +00:00
class-wp-upgrader-skin.php General: Introduce WP_Error::has_errors() method and use it where appropriate. 2018-02-27 02:31:31 +00:00
class-wp-upgrader-skins.php Load: Re-add class-wp-upgrader-skins.php. 2016-12-03 03:40:41 +00:00
class-wp-upgrader.php Docs: Standardise and correct documentation relating to parameters which accept plugin names. 2018-03-05 21:50:31 +00:00
class-wp-users-list-table.php Docs: Document many more parameters and properties using typed array notation. 2018-03-22 20:27:32 +00:00
comment.php Code is Poetry. 2017-11-30 23:11:00 +00:00
continents-cities.php I18N: Update list of continents and cities for the timezone selection. 2018-07-18 11:21:25 +00:00
credits.php Code is Poetry. 2017-11-30 23:11:00 +00:00
dashboard.php Gutenbeg: you can't remove call outs that don't exist 2018-07-31 15:16:25 +00:00
deprecated.php Taxonomy: restore TagSearch unit tests and correct deprecated version string. 2018-02-25 16:28:30 +00:00
edit-tag-messages.php Code is Poetry. 2017-11-30 23:11:00 +00:00
export.php Docs: Document more parameters and properties using typed array notation. 2018-03-25 18:10:32 +00:00
file.php I18N: Separate two "About" strings with different context. 2018-07-24 15:04:25 +00:00
image-edit.php Docs: Add missing @since entries for functions in wp-admin/image-edit.php. 2018-02-26 18:38:31 +00:00
image.php Media: Pass EXIF data to the wp_read_image_metadata filter. 2018-03-25 20:45:29 +00:00
import.php Code is Poetry. 2017-11-30 23:11:00 +00:00
list-table.php Docs: Update and correct various inline documentation. 2018-05-07 17:20:22 +00:00
media.php I18N: Use consistent pattern for placeholder references in a translator comment in media_upload_max_image_resize(). 2018-04-16 18:37:20 +00:00
menu.php Code is Poetry. 2017-11-30 23:11:00 +00:00
meta-boxes.php Administration: Change all the occurrences of "(opens in a new window)" to "(opens in a new tab)". 2018-05-05 09:45:22 +00:00
misc.php Privacy: Enable pagination screen options for privacy requests list tables. 2018-07-17 16:04:24 +00:00
ms-admin-filters.php Code is Poetry. 2017-11-30 23:11:00 +00:00
ms-deprecated.php Docs: Standardize and add missing deprecation notations in DocBlocks for the following functions: 2017-06-22 17:48:45 +00:00
ms.php Multisite: Complete the new CRUD API for managing sites. 2018-08-01 13:06:26 +00:00
nav-menu.php Docs: First pass at switching some array parameter documentation to typed notation. 2018-02-09 17:26:31 +00:00
network.php I18N: Use the actual placeholder instead of a number in translator comments if the corresponding string does not use numbered placeholders. 2018-03-11 16:44:34 +00:00
noop.php Code is Poetry. 2017-11-30 23:11:00 +00:00
options.php Code is Poetry. 2017-11-30 23:11:00 +00:00
plugin-install.php Plugins: Disable "Install Now" button for plugins that require a higher version of PHP or WordPress. 2018-07-09 13:45:25 +00:00
plugin.php Privacy: Make sure wp_add_privacy_policy_content() does not cause a fatal error by unintentionally flushing rewrite rules outside of the admin context. 2018-06-28 02:36:09 +00:00
post.php Move scheduling of old auto-draft posts deletion to get_default_post_to_edit() (where auto-drafts are created). 2018-06-28 02:26:22 +00:00
revision.php Revisions: improve show_split_view=false support for title. 2018-04-10 16:12:30 +00:00
schema.php Privacy: Revert [43525]. 2018-07-24 17:06:24 +00:00
screen.php Code is Poetry. 2017-11-30 23:11:00 +00:00
taxonomy.php Docs: Correct and improve various inline documentation. 2018-03-25 19:35:29 +00:00
template.php Privacy: Mark Privacy Policy page as such in the Pages list table. 2018-07-17 16:46:25 +00:00
theme-install.php Code is Poetry. 2017-11-30 23:11:00 +00:00
theme.php Docs: Remove backtick-escaping around a core function in the hook docs for the pre_prepare_themes_for_js filter. 2018-04-29 21:47:22 +00:00
translation-install.php Code is Poetry. 2017-11-30 23:11:00 +00:00
update-core.php Docs: Use consistent description for $wp_filesystem global. 2018-03-04 21:58:30 +00:00
update.php Code is Poetry. 2017-11-30 23:11:00 +00:00
upgrade.php Privacy: make creating a privacy policy page on install multisite compatible. 2018-05-11 15:44:21 +00:00
user.php Privacy: Enable pagination screen options for privacy requests list tables. 2018-07-17 16:04:24 +00:00
widgets.php Accessibility: Widgets: Make the "Available Widgets" section operable with a keyboard. 2018-03-07 22:27:31 +00:00