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

git-svn-id: http://svn.automattic.com/wordpress/trunk@18450 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2011-07-21 19:37:47 +00:00
parent 4e538ea9c8
commit db8c49d886
1 changed files with 2 additions and 2 deletions

View File

@ -92,6 +92,8 @@ if ( is_multisite() ) {
define( 'MULTISITE', false ); define( 'MULTISITE', false );
} }
register_shutdown_function( 'shutdown_action_hook' );
// Stop most of WordPress from being loaded if we just want the basics. // Stop most of WordPress from being loaded if we just want the basics.
if ( SHORTINIT ) if ( SHORTINIT )
return false; return false;
@ -287,8 +289,6 @@ do_action( 'after_setup_theme' );
// Load any template functions the theme supports. // Load any template functions the theme supports.
require_if_theme_supports( 'post-thumbnails', ABSPATH . WPINC . '/post-thumbnail-template.php' ); require_if_theme_supports( 'post-thumbnails', ABSPATH . WPINC . '/post-thumbnail-template.php' );
register_shutdown_function( 'shutdown_action_hook' );
// Set up current user. // Set up current user.
$wp->init(); $wp->init();