Wordpress/tests/phpunit/includes
Felix Arntz 8e4bd924d2 Multisite: Introduce metadata for sites.
A new global multisite table `wp_blogmeta` is added to the database schema, and a set of `*_site_meta()` API functions are introduced.

The implementation fails gracefully when the new table is not yet available, which may happen especially shortly after the core update, before the network has been upgraded to the new database schema. The presence of the table is detected once and stored as a global setting on the main network.

Core does not yet use site metadata, but there are several use-cases to be implemented or explored in the near future, and it allows plugins to extend sites with arbitrary data, which will come in particularly handy with the upcoming REST API endpoint for sites.

Props spacedmonkey, johnjamesjacoby, jeremyfelt, flixos90.
Fixes #37923.


git-svn-id: https://develop.svn.wordpress.org/trunk@42836 602fd350-edb4-49c9-b593-d223f7449a82
2018-03-16 02:14:04 +00:00
..
factory Code is Poetry. 2017-11-30 23:09:33 +00:00
bootstrap.php Unit Tests: add a DIR_TESTROOT constant to avoid relative paths. 2018-02-25 18:06:49 +00:00
class-basic-object.php Build/Test tools: Remove unnecessary PHP functionality tests from the test suite. 2017-12-09 23:08:24 +00:00
class-basic-subclass.php Build/Test tools: Remove unnecessary PHP functionality tests from the test suite. 2017-12-09 23:08:24 +00:00
exceptions.php
factory.php Add tests for get_bookmarks() cache. 2016-05-25 18:20:24 +00:00
functions.php Tests: Replace use of $this->server with rest_get_server() for better memory recycling. 2018-02-21 16:24:30 +00:00
install.php Code is Poetry. 2017-11-30 23:09:33 +00:00
mock-fs.php Code is Poetry. 2017-11-30 23:09:33 +00:00
mock-image-editor.php Code is Poetry. 2017-11-30 23:09:33 +00:00
mock-mailer.php Code is Poetry. 2017-11-30 23:09:33 +00:00
object-cache.php Code is Poetry. 2017-11-30 23:09:33 +00:00
phpunit6-compat.php Code is Poetry. 2017-11-30 23:09:33 +00:00
plural-form-function.php Code is Poetry. 2017-11-30 23:09:33 +00:00
speed-trap-listener.php Code is Poetry. 2017-11-30 23:09:33 +00:00
spy-rest-server.php Code is Poetry. 2017-11-30 23:09:33 +00:00
testcase-ajax.php Code is Poetry. 2017-11-30 23:09:33 +00:00
testcase-canonical.php Code is Poetry. 2017-11-30 23:09:33 +00:00
testcase-rest-api.php REST API: Introduce baby API to the world. 2015-10-08 02:30:18 +00:00
testcase-rest-controller.php Tests: Replace use of $this->server with rest_get_server() for better memory recycling. 2018-02-21 16:24:30 +00:00
testcase-rest-post-type-controller.php Code is Poetry. 2017-11-30 23:09:33 +00:00
testcase-xmlrpc.php Code is Poetry. 2017-11-30 23:09:33 +00:00
testcase.php Multisite: Introduce metadata for sites. 2018-03-16 02:14:04 +00:00
trac.php Code is Poetry. 2017-11-30 23:09:33 +00:00
utils.php Code is Poetry. 2017-11-30 23:09:33 +00:00
wp-profiler.php Code is Poetry. 2017-11-30 23:09:33 +00:00