WordPress.org

Make WordPress Core

Ticket #16389: wp-settings.diff

File wp-settings.diff, 653 bytes (added by jtclarke, 7 years ago)

wp-settings.php patch for SHORTINIT

  • wp-settings.php

     
    9090        define( 'MULTISITE', false );
    9191}
    9292
     93register_shutdown_function( 'shutdown_action_hook' );
     94
    9395// Stop most of WordPress from being loaded if we just want the basics.
    9496if ( SHORTINIT )
    9597        return false;
     
    283285// Load any template functions the theme supports.
    284286require_if_theme_supports( 'post-thumbnails', ABSPATH . WPINC . '/post-thumbnail-template.php' );
    285287
    286 register_shutdown_function( 'shutdown_action_hook' );
    287 
    288288// Set up current user.
    289289$wp->init();
    290290