Ticket #26804: wp-settings.php.patch
File wp-settings.php.patch, 771 bytes (added by , 11 years ago) |
---|
-
wp-settings.php
99 99 register_shutdown_function( 'shutdown_action_hook' ); 100 100 101 101 // Stop most of WordPress from being loaded if we just want the basics. 102 if ( SHORTINIT ) 102 if ( 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 103 114 return false; 115 } 104 116 105 117 // Load the L10n library. 106 118 require_once( ABSPATH . WPINC . '/l10n.php' );