Make WordPress Core

Ticket #26804: wp-settings.php.patch

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

     
    9999register_shutdown_function( 'shutdown_action_hook' );
    100100
    101101// Stop most of WordPress from being loaded if we just want the basics.
    102 if ( SHORTINIT )
     102if ( SHORTINIT ) {
     103
     104        // Custom SHORTINIT actions
     105        if ( is_dir( WP_CONTENT_DIR . '/shortinit/' ) ) {
     106                $filenames = (array) scandir( WP_CONTENT_DIR . '/shortinit/' );
     107                foreach ( $filenames as $filename ) {
     108                        if ( '.' != substr( $filename, 0, 1 ) ) {
     109                                require_once( WP_CONTENT_DIR . '/shortinit/' . $filename );
     110                        }
     111                }
     112        }
     113
    103114        return false;
     115}
    104116
    105117// Load the L10n library.
    106118require_once( ABSPATH . WPINC . '/l10n.php' );