Make WordPress Core


Ignore:
Timestamp:
02/20/2010 01:51:32 PM (16 years ago)
Author:
nacin
Message:

Rename is_installed() to ms_not_installed(). See #12083

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/load.php

    r13222 r13253  
    382382function wp_not_installed() {
    383383    if ( is_multisite() ) {
    384         if ( !is_blog_installed() && !defined( 'WP_INSTALLING' ) )
     384        if ( ! is_blog_installed() && ! defined( 'WP_INSTALLING' ) )
    385385            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' ) ) {
    387387        if ( defined( 'WP_SITEURL' ) )
    388388            $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' ) )
    390390            $link = preg_replace( '|/wp-admin/?.*?$|', '/', $_SERVER['PHP_SELF'] ) . 'wp-admin/install.php';
    391391        else
    392392            $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' );
    396396        wp_redirect( $link );
    397397        die();
     
    560560 * Whether Multisite support is enabled
    561561 *
    562  * @since 3.0
     562 * @since 3.0.0
    563563 *
    564564 * @return bool True if multisite is enabled, false otherwise.
Note: See TracChangeset for help on using the changeset viewer.