Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-settings.php

    r16558 r18263  
    2121require( ABSPATH . WPINC . '/version.php' );
    2222
    23 // Set initial default constants including WP_MEMORY_LIMIT, WP_DEBUG, WP_CONTENT_DIR and WP_CACHE.
     23// Set initial default constants including WP_MEMORY_LIMIT, WP_MAX_MEMORY_LIMIT, WP_DEBUG, WP_CONTENT_DIR and WP_CACHE.
    2424wp_initial_constants( );
    2525
     
    4444wp_check_php_mysql_versions();
    4545
    46 // Check if we have recieved a request due to missing favicon.ico
     46// Check if we have received a request due to missing favicon.ico
    4747wp_favicon_request();
    4848
     
    217217 * @since 2.0.0
    218218 */
    219 $wp_the_query =& new WP_Query();
     219$wp_the_query = new WP_Query();
    220220
    221221/**
     
    232232 * @since 1.5.0
    233233 */
    234 $wp_rewrite =& new WP_Rewrite();
     234$wp_rewrite = new WP_Rewrite();
    235235
    236236/**
     
    239239 * @since 2.0.0
    240240 */
    241 $wp =& new WP();
     241$wp = new WP();
    242242
    243243/**
     
    246246 * @since 2.8.0
    247247 */
    248 $wp_widget_factory =& new WP_Widget_Factory();
     248$wp_widget_factory = new WP_Widget_Factory();
    249249
    250250do_action( 'setup_theme' );
     
    271271 * @since 2.1.0
    272272 */
    273 $wp_locale =& new WP_Locale();
     273$wp_locale = new WP_Locale();
    274274
    275275// 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' );
     276if ( ! defined( 'WP_INSTALLING' ) || 'wp-activate.php' === $pagenow ) {
     277    if ( TEMPLATEPATH !== STYLESHEETPATH && file_exists( STYLESHEETPATH . '/functions.php' ) )
     278        include( STYLESHEETPATH . '/functions.php' );
     279    if ( file_exists( TEMPLATEPATH . '/functions.php' ) )
     280        include( TEMPLATEPATH . '/functions.php' );
     281}
    280282
    281283do_action( 'after_setup_theme' );
Note: See TracChangeset for help on using the changeset viewer.