Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-settings.php

    r18356 r18375  
    55 *
    66 * Allows for some configuration in wp-config.php (see default-constants.php)
     7 *
     8 * @internal This file must be parsable by PHP4.
    79 *
    810 * @package WordPress
     
    2123require( ABSPATH . WPINC . '/version.php' );
    2224
    23 // Set initial default constants including WP_MEMORY_LIMIT, WP_DEBUG, WP_CONTENT_DIR and WP_CACHE.
     25// Set initial default constants including WP_MEMORY_LIMIT, WP_MAX_MEMORY_LIMIT, WP_DEBUG, WP_CONTENT_DIR and WP_CACHE.
    2426wp_initial_constants( );
     27
     28// Check for the required PHP version and for the MySQL extension or a database drop-in.
     29wp_check_php_mysql_versions();
    2530
    2631// Disable magic quotes at runtime. Magic quotes are added using wpdb later in wp-settings.php.
     
    4146wp_fix_server_vars();
    4247
    43 // Check for the required PHP version and for the MySQL extension or a database drop-in.
    44 wp_check_php_mysql_versions();
    45 
    46 // Check if we have recieved a request due to missing favicon.ico
     48// Check if we have received a request due to missing favicon.ico
    4749wp_favicon_request();
    4850
     
    217219 * @since 2.0.0
    218220 */
    219 $wp_the_query =& new WP_Query();
     221$wp_the_query = new WP_Query();
    220222
    221223/**
     
    232234 * @since 1.5.0
    233235 */
    234 $wp_rewrite =& new WP_Rewrite();
     236$wp_rewrite = new WP_Rewrite();
    235237
    236238/**
     
    239241 * @since 2.0.0
    240242 */
    241 $wp =& new WP();
     243$wp = new WP();
    242244
    243245/**
     
    246248 * @since 2.8.0
    247249 */
    248 $wp_widget_factory =& new WP_Widget_Factory();
     250$wp_widget_factory = new WP_Widget_Factory();
    249251
    250252do_action( 'setup_theme' );
     
    271273 * @since 2.1.0
    272274 */
    273 $wp_locale =& new WP_Locale();
     275$wp_locale = new WP_Locale();
    274276
    275277// Load the functions for the active theme, for both parent and child theme if applicable.
    276 if ( TEMPLATEPATH !== STYLESHEETPATH && file_exists( STYLESHEETPATH . '/functions.php' ) )
    277     include( STYLESHEETPATH . '/functions.php' );
    278 if ( file_exists( TEMPLATEPATH . '/functions.php' ) )
    279     include( TEMPLATEPATH . '/functions.php' );
     278if ( ! defined( 'WP_INSTALLING' ) || 'wp-activate.php' === $pagenow ) {
     279    if ( TEMPLATEPATH !== STYLESHEETPATH && file_exists( STYLESHEETPATH . '/functions.php' ) )
     280        include( STYLESHEETPATH . '/functions.php' );
     281    if ( file_exists( TEMPLATEPATH . '/functions.php' ) )
     282        include( TEMPLATEPATH . '/functions.php' );
     283}
    280284
    281285do_action( 'after_setup_theme' );
Note: See TracChangeset for help on using the changeset viewer.