From db8c49d8861fa5b1ddb13cb65a53a6f75334a820 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 21 Jul 2011 19:37:47 +0000 Subject: [PATCH] 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 --- wp-settings.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-settings.php b/wp-settings.php index 9b89b577a1..06af3dd3ce 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -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();