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
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
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
class-file-upload-upgrader.php
class-ftp-pure.php
class-ftp-sockets.php
class-ftp.php
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
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
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
class-walker-nav-menu-checklist.php
class-walker-nav-menu-edit.php
class-wp-ajax-upgrader-skin.php
class-wp-automatic-updater.php
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
class-wp-filesystem-direct.php
class-wp-filesystem-ftpext.php
class-wp-filesystem-ftpsockets.php
class-wp-filesystem-ssh2.php
class-wp-importer.php
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
class-wp-list-table-compat.php
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
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
class-wp-upgrader-skin.php
class-wp-upgrader-skins.php
class-wp-upgrader.php
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
continents-cities.php I18N: Update list of continents and cities for the timezone selection. 2018-07-18 11:21:25 +00:00
credits.php
dashboard.php Gutenbeg: you can't remove call outs that don't exist 2018-07-31 15:16:25 +00:00
deprecated.php
edit-tag-messages.php
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
image.php Media: Pass EXIF data to the `wp_read_image_metadata` filter. 2018-03-25 20:45:29 +00:00
import.php
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
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
ms-deprecated.php
ms.php Multisite: Complete the new CRUD API for managing sites. 2018-08-01 13:06:26 +00:00
nav-menu.php
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
options.php
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
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
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
update-core.php
update.php
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