Make WordPress Core

Changeset 37916


Ignore:
Timestamp:
06/29/2016 06:59:42 PM (8 years ago)
Author:
jeremyfelt
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-settings.php

    r37475 r37916  
    105105// Define upload directory constants
    106106ms_upload_constants();
     107
     108/**
     109 * Fires after the current site and network have been detected and loaded
     110 * in multisite's bootstrap.
     111 *
     112 * @since 4.6.0
     113 */
     114do_action( 'ms_loaded' );
Note: See TracChangeset for help on using the changeset viewer.