Make WordPress Core


Ignore:
Timestamp:
02/20/2010 12:50:09 PM (15 years ago)
Author:
nacin
Message:

Force fatal errors via require() if we're missing something we need. fixes #11681, also fixes #11834

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-settings.php

    r13214 r13251  
    5858// For an advanced caching plugin to use. Uses a static drop-in because you would only want one.
    5959if ( WP_CACHE )
    60     @include WP_CONTENT_DIR . '/advanced-cache.php';
     60    @include( WP_CONTENT_DIR . '/advanced-cache.php' );
    6161
    6262// Define WP_LANG_DIR if not set.
     
    8080require( ABSPATH . WPINC . '/plugin.php' );
    8181require( ABSPATH . WPINC . '/default-filters.php' );
    82 include_once( ABSPATH . WPINC . '/pomo/mo.php' );
     82require( ABSPATH . WPINC . '/pomo/mo.php' );
    8383
    8484// Initialize multisite if enabled.
     
    9393
    9494// Load the l18n library.
    95 require_once ( ABSPATH . WPINC . '/l10n.php' );
     95require( ABSPATH . WPINC . '/l10n.php' );
    9696
    9797// Run the installer if WordPress is not installed.
     
    132132// Load multisite-specific files.
    133133if ( is_multisite() ) {
    134     require_once( ABSPATH . WPINC . '/ms-functions.php' );
    135     require_once( ABSPATH . WPINC . '/ms-default-filters.php' );
    136     require_once( ABSPATH . WPINC . '/ms-deprecated.php' );
     134    require( ABSPATH . WPINC . '/ms-functions.php' );
     135    require( ABSPATH . WPINC . '/ms-default-filters.php' );
     136    require( ABSPATH . WPINC . '/ms-deprecated.php' );
    137137}
    138138
     
    152152if ( is_multisite() ) {
    153153    if ( true !== ( $file = ms_site_check() ) ) {
    154         require_once( $file );
     154        require( $file );
    155155        die();
    156156    }
     
    247247$locale_file = WP_LANG_DIR . "/$locale.php";
    248248if ( is_readable( $locale_file ) )
    249     require_once( $locale_file );
     249    require( $locale_file );
    250250unset($locale_file);
    251251
    252252// Pull in locale data after loading text domain.
    253 require_once( ABSPATH . WPINC . '/locale.php' );
     253require( ABSPATH . WPINC . '/locale.php' );
    254254
    255255/**
Note: See TracChangeset for help on using the changeset viewer.