Changes in trunk/wp-settings.php [16558:18263]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-settings.php
r16558 r18263 21 21 require( ABSPATH . WPINC . '/version.php' ); 22 22 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. 24 24 wp_initial_constants( ); 25 25 … … 44 44 wp_check_php_mysql_versions(); 45 45 46 // Check if we have rec ieved a request due to missing favicon.ico46 // Check if we have received a request due to missing favicon.ico 47 47 wp_favicon_request(); 48 48 … … 217 217 * @since 2.0.0 218 218 */ 219 $wp_the_query = &new WP_Query();219 $wp_the_query = new WP_Query(); 220 220 221 221 /** … … 232 232 * @since 1.5.0 233 233 */ 234 $wp_rewrite = &new WP_Rewrite();234 $wp_rewrite = new WP_Rewrite(); 235 235 236 236 /** … … 239 239 * @since 2.0.0 240 240 */ 241 $wp = &new WP();241 $wp = new WP(); 242 242 243 243 /** … … 246 246 * @since 2.8.0 247 247 */ 248 $wp_widget_factory = &new WP_Widget_Factory();248 $wp_widget_factory = new WP_Widget_Factory(); 249 249 250 250 do_action( 'setup_theme' ); … … 271 271 * @since 2.1.0 272 272 */ 273 $wp_locale = &new WP_Locale();273 $wp_locale = new WP_Locale(); 274 274 275 275 // 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' ); 276 if ( ! 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 } 280 282 281 283 do_action( 'after_setup_theme' );
Note: See TracChangeset
for help on using the changeset viewer.