Skip to content

Commit

Permalink
Call register_shutdown_function() for SHORTINIT. Props jtclarke. fixe…
Browse files Browse the repository at this point in the history
…s #16389

git-svn-id: http://svn.automattic.com/wordpress/trunk@18450 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
ryan committed Jul 21, 2011
1 parent 4e538ea commit db8c49d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wp-settings.php
Expand Up @@ -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;
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit db8c49d

Please sign in to comment.