Ticket #11881: 11881.fixes-setup-config-only.diff
File 11881.fixes-setup-config-only.diff, 2.3 KB (added by , 15 years ago) |
---|
-
wp-settings.php
9 9 * @package WordPress 10 10 */ 11 11 12 13 12 /** 14 * Whether Multisite support is enabled13 * Stores the location of the WordPress directory of functions, classes, and core content. 15 14 * 16 * @since 3.0 17 * 18 * @return bool True if multisite is enabled, false otherwise. 15 * @since 1.0.0 19 16 */ 20 function is_multisite() { 21 if ( ( defined('MULTISITE') && MULTISITE ) || defined('VHOST') || defined('SUNRISE') ) 22 return true; 17 define('WPINC', 'wp-includes'); 23 18 24 return false; 25 } 19 require( ABSPATH . WPINC . '/load.php'); 26 20 27 21 if ( !defined('WP_MEMORY_LIMIT') ) { 28 22 if( is_multisite() ) { … … 255 249 if ( !defined('MEDIA_TRASH') ) 256 250 define('MEDIA_TRASH', false); 257 251 258 /**259 * Stores the location of the WordPress directory of functions, classes, and core content.260 *261 * @since 1.0.0262 */263 define('WPINC', 'wp-includes');264 265 252 if ( !defined('WP_LANG_DIR') ) { 266 253 /** 267 254 * Stores the location of the language directory. First looks for language folder in WP_CONTENT_DIR -
wp-includes/load.php
1 <?php 2 3 /** 4 * Initialization functions. 5 * 6 * @package WordPress 7 */ 8 9 /** 10 * Whether Multisite support is enabled 11 * 12 * @since 3.0 13 * 14 * @return bool True if multisite is enabled, false otherwise. 15 */ 16 function is_multisite() { 17 if ( ( defined('MULTISITE') && MULTISITE ) || defined('VHOST') || defined('SUNRISE') ) 18 return true; 19 20 return false; 21 } 22 23 ?> 24 No newline at end of file -
wp-admin/setup-config.php
31 31 define('ABSPATH', dirname(dirname(__FILE__)).'/'); 32 32 define('WPINC', 'wp-includes'); 33 33 define('WP_CONTENT_DIR', ABSPATH . 'wp-content'); 34 define('WP_DEBUG', false); 34 35 /**#@-*/ 35 36 37 require_once(ABSPATH . WPINC . '/load.php'); 36 38 require_once(ABSPATH . WPINC . '/compat.php'); 37 39 require_once(ABSPATH . WPINC . '/functions.php'); 38 40 require_once(ABSPATH . WPINC . '/classes.php');