Skip to content

Instantly share code, notes, and snippets.

@hwkdev
Created April 22, 2018 20:12
Show Gist options
  • Select an option

  • Save hwkdev/78be1081169de5eed2cb42a67f4e8eda to your computer and use it in GitHub Desktop.

Select an option

Save hwkdev/78be1081169de5eed2cb42a67f4e8eda to your computer and use it in GitHub Desktop.
<?php
// wp-settings.php:118
// Initialize multisite if enabled.
if ( is_multisite() ) {
require( ABSPATH . WPINC . '/class-wp-site-query.php' );
require( ABSPATH . WPINC . '/class-wp-network-query.php' );
require( ABSPATH . WPINC . '/ms-blogs.php' );
require( ABSPATH . WPINC . '/ms-settings.php' );
} elseif ( ! defined( 'MULTISITE' ) ) {
define( 'MULTISITE', false );
}
register_shutdown_function( 'shutdown_action_hook' );
// Stop most of WordPress from being loaded if we just want the basics.
if ( SHORTINIT )
return false;
// Load the L10n library.
require_once( ABSPATH . WPINC . '/l10n.php' );
require_once( ABSPATH . WPINC . '/class-wp-locale.php' );
require_once( ABSPATH . WPINC . '/class-wp-locale-switcher.php' );
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment