Multisite: Fire the `ms_loaded` action after multisite's bootstrap has finished.

This allows code in `sunrise.php` and in core to know when multisite bootstrap is complete and when the `$current_site` and `$current_blog` globals are populated.

Fixes #37235.
Props flixos90.

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


git-svn-id: http://core.svn.wordpress.org/trunk@37857 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Jeremy Felt 2016-06-29 19:00:28 +00:00
parent 170d22a22c
commit ba8d3fca8f
2 changed files with 9 additions and 1 deletions

View File

@ -104,3 +104,11 @@ if ( ! $current_blog instanceof WP_Site ) {
// Define upload directory constants
ms_upload_constants();
/**
* Fires after the current site and network have been detected and loaded
* in multisite's bootstrap.
*
* @since 4.6.0
*/
do_action( 'ms_loaded' );

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.6-alpha-37915';
$wp_version = '4.6-alpha-37916';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.