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
bootstrap.php
class-basic-object.php
class-basic-subclass.php
exceptions.php
factory.php
functions.php
install.php
mock-fs.php
mock-image-editor.php
mock-mailer.php
object-cache.php
phpunit6-compat.php
plural-form-function.php
speed-trap-listener.php
spy-rest-server.php
testcase-ajax.php
testcase-canonical.php
testcase-rest-api.php
testcase-rest-controller.php
testcase-rest-post-type-controller.php
testcase-xmlrpc.php
testcase.php Multisite: Introduce metadata for sites. 2018-03-16 02:14:04 +00:00
trac.php
utils.php
wp-profiler.php