: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
$msg .= ' ' . __( 'If you are still stuck with this message, then check that your database contains the following tables:' ) . '</p><ul>';
foreach ( $wpdb->tables( 'global' ) as $t => $table ) {
if ( 'sitecategories' === $t ) {
$msg .= '<li>' . $table . '</li>';
wp_die( $msg, $title, array( 'response' => 500 ) );
* This deprecated function formerly set the site_name property of the $current_site object.
* This function simply returns the object, as before.
* The bootstrap takes care of setting site_name.
* @deprecated 3.9.0 Use get_current_site() instead.
* @param WP_Network $current_site
function get_current_site_name( $current_site ) {
_deprecated_function( __FUNCTION__, '3.9.0', 'get_current_site()' );
* This deprecated function managed much of the site and network loading in multisite.
* The current bootstrap code is now responsible for parsing the site and network load as
* well as setting the global $current_site object.
* @global WP_Network $current_site
function wpmu_current_site() {
_deprecated_function( __FUNCTION__, '3.9.0' );
* Retrieves an object containing information about the requested network.
* @deprecated 4.7.0 Use get_network()
* @internal In 4.6.0, converted to use get_network()
* @param object|int $network The network's database row or ID.
* @return WP_Network|false Object containing network information if found, false if not.
function wp_get_network( $network ) {
_deprecated_function( __FUNCTION__, '4.7.0', 'get_network()' );
$network = get_network( $network );
if ( null === $network ) {