From 80f6c2833cbc6265e60640f55af4acfd8f83d1cd Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 21 Jul 2011 19:37:47 +0000 Subject: [PATCH] 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 --- 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();