Call register_shutdown_function() for SHORTINIT. Props jtclarke. fixes #16389

git-svn-id: https://develop.svn.wordpress.org/trunk@18450 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2011-07-21 19:37:47 +00:00
parent b4b82c9725
commit 80f6c2833c

View File

@ -92,6 +92,8 @@ if ( is_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;
@ -287,8 +289,6 @@ do_action( 'after_setup_theme' );
// Load any template functions the theme supports.
require_if_theme_supports( 'post-thumbnails', ABSPATH . WPINC . '/post-thumbnail-template.php' );
register_shutdown_function( 'shutdown_action_hook' );
// Set up current user.
$wp->init();