Go to file
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
src Multisite: Introduce metadata for sites. 2018-03-16 02:14:04 +00:00
tests Multisite: Introduce metadata for sites. 2018-03-16 02:14:04 +00:00
tools/i18n Remove the svn:executable property from files that don't need it. 2017-11-17 02:57:27 +00:00
.editorconfig Build: Switch package.json to using tabs for indents. 2018-01-16 03:54:10 +00:00
.gitignore Build/Test Tools: Remove vendor file name entry from .gitignore. 2018-02-25 11:29:25 +00:00
.jshintrc General: Remove .jshintrc and *.json from the 2-space-indent .editorconfig group. 2017-10-12 01:57:45 +00:00
.travis.yml BUILD/TEST TOOLS: Report Travis test results to make/hosting PHPUnit test results 2018-01-16 20:28:42 +00:00
Gruntfile.js Build/Test Tools: Add watch:phpunit task. 2018-02-27 00:31:33 +00:00
jsdoc.conf.json Docs: Improve wp-admin JSDoc structural data globally. 2017-12-15 13:41:56 +00:00
package.json Build Tools: Update SPDX License in package.json to adhere to SPDX v3.0 specification. 2018-02-01 16:38:48 +00:00
phpcs.xml.dist Coding Standards: Add the phpcs.xml.dist file. 2017-12-01 03:40:04 +00:00
phpunit.xml.dist Build/Test Tools: Allow code coverage reports to be generated. 2018-02-07 22:20:25 +00:00
webpack.config.dev.js Build: Webpack instead of Browserify as JavaScript bundler. 2017-10-04 21:00:15 +00:00
webpack.config.prod.js Build: Webpack instead of Browserify as JavaScript bundler. 2017-10-04 21:00:15 +00:00
wp-cli.yml Remove debug mode from WP-CLI by default, as it now outputs too much debugging information to be of use during normal development. 2015-11-28 18:36:06 +00:00
wp-config-sample.php Code is Poetry. 2017-11-30 23:09:33 +00:00
wp-tests-config-sample.php Code is Poetry. 2017-11-30 23:09:33 +00:00