WordPress.org

Make WordPress Core

Ticket #34936: shortinit.34936.1.diff

File shortinit.34936.1.diff, 544 bytes (added by danielbachhuber, 3 years ago)
  • src/wp-settings.php

    diff --git a/src/wp-settings.php b/src/wp-settings.php
    index 8beee6f..2284a17 100644
    a b if ( is_multisite() ) { 
    111111
    112112register_shutdown_function( 'shutdown_action_hook' );
    113113
     114/**
     115 * Fires after WordPress has been partially loaded.
     116 *
     117 * Use this action to execute a callback very early in the bootstrap process.
     118 *
     119 * @since 4.6.0
     120 */
     121do_action( 'shortinit' );
     122
    114123// Stop most of WordPress from being loaded if we just want the basics.
    115124if ( SHORTINIT )
    116125        return false;