Permalink
Browse files

Call register_shutdown_function() for SHORTINIT. Props jtclarke. fixe…

…s #16389

git-svn-id: http://svn.automattic.com/wordpress/trunk@18450 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent 4e538ea commit db8c49d8861fa5b1ddb13cb65a53a6f75334a820 ryan committed Jul 21, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 wp-settings.php
View
@@ -92,6 +92,8 @@
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 @@
// 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();

0 comments on commit db8c49d

Please sign in to comment.