Changeset 13253 for trunk/wp-includes/load.php
- Timestamp:
- 02/20/2010 01:51:32 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/load.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/load.php
r13222 r13253 382 382 function wp_not_installed() { 383 383 if ( is_multisite() ) { 384 if ( ! is_blog_installed() && !defined( 'WP_INSTALLING' ) )384 if ( ! is_blog_installed() && ! defined( 'WP_INSTALLING' ) ) 385 385 wp_die( __( 'The blog you have requested is not installed properly. Please contact the system administrator.' ) ); 386 } elseif ( ! is_blog_installed() && ( strpos( $_SERVER['PHP_SELF'], 'install.php' ) === false && !defined( 'WP_INSTALLING' )) ) {386 } elseif ( ! is_blog_installed() && false === strpos( $_SERVER['PHP_SELF'], 'install.php' ) && !defined( 'WP_INSTALLING' ) ) { 387 387 if ( defined( 'WP_SITEURL' ) ) 388 388 $link = WP_SITEURL . '/wp-admin/install.php'; 389 elseif ( strpos( $_SERVER['PHP_SELF'], 'wp-admin' ) !== false)389 elseif ( false !== strpos( $_SERVER['PHP_SELF'], 'wp-admin' ) ) 390 390 $link = preg_replace( '|/wp-admin/?.*?$|', '/', $_SERVER['PHP_SELF'] ) . 'wp-admin/install.php'; 391 391 else 392 392 $link = preg_replace( '|/[^/]+?$|', '/', $_SERVER['PHP_SELF'] ) . 'wp-admin/install.php'; 393 require _once( ABSPATH . WPINC . '/kses.php' );394 require _once( ABSPATH . WPINC . '/pluggable.php' );395 require _once( ABSPATH . WPINC . '/formatting.php' );393 require( ABSPATH . WPINC . '/kses.php' ); 394 require( ABSPATH . WPINC . '/pluggable.php' ); 395 require( ABSPATH . WPINC . '/formatting.php' ); 396 396 wp_redirect( $link ); 397 397 die(); … … 560 560 * Whether Multisite support is enabled 561 561 * 562 * @since 3.0 562 * @since 3.0.0 563 563 * 564 564 * @return bool True if multisite is enabled, false otherwise.
Note: See TracChangeset
for help on using the changeset viewer.