WordPress.org

Make WordPress Core

Ticket #26806: wp-settings.php.patch

File wp-settings.php.patch, 663 bytes (added by mgibbs189, 8 years ago)
  • wp-settings.php

     
    9898
    9999register_shutdown_function( 'shutdown_action_hook' );
    100100
     101// Custom SHORTINIT handlers
     102if ( is_dir( WP_CONTENT_DIR . '/shortinit/' ) ) {
     103        $filenames = (array) scandir( WP_CONTENT_DIR . '/shortinit/' );
     104        foreach ( $filenames as $filename ) {
     105                if ( '.' != substr( $filename, 0, 1 ) ) {
     106                        require_once( WP_CONTENT_DIR . '/shortinit/' . $filename );
     107                }
     108        }
     109}
     110
    101111// Stop most of WordPress from being loaded if we just want the basics.
    102112if ( SHORTINIT )
    103113        return false;