Ticket #51507: 51507-1.patch
File 51507-1.patch, 982 bytes (added by , 3 years ago) |
---|
-
src/wp-includes/default-constants.php
115 115 define( 'MEDIA_TRASH', false ); 116 116 } 117 117 118 if ( ! defined( 'SHORTINIT_WITHOUT_DB' ) ) { 119 define( 'SHORTINIT_WITHOUT_DB', false ); 120 } 121 118 122 if ( ! defined( 'SHORTINIT' ) ) { 119 123 define( 'SHORTINIT', false ); 120 124 } -
src/wp-settings.php
115 115 require ABSPATH . WPINC . '/class-wp-error.php'; 116 116 require ABSPATH . WPINC . '/pomo/mo.php'; 117 117 118 // Stop most of WordPress from being loaded if we just want the basics (without DB) 119 if ( SHORTINIT_WITHOUT_DB ) { 120 return false; 121 } 122 118 123 /** 119 124 * @global wpdb $wpdb WordPress database abstraction object. 120 125 * @since 0.71