Changeset 44524 for trunk/src/wp-settings.php
- Timestamp:
- 01/09/2019 08:04:55 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-settings.php
r44344 r44524 18 18 // Include files required for initialization. 19 19 require( ABSPATH . WPINC . '/load.php' ); 20 require( ABSPATH . WPINC . '/class-wp-paused-extensions-storage.php' ); 21 require( ABSPATH . WPINC . '/class-wp-shutdown-handler.php' ); 22 require( ABSPATH . WPINC . '/error-protection.php' ); 20 23 require( ABSPATH . WPINC . '/default-constants.php' ); 21 24 require_once( ABSPATH . WPINC . '/plugin.php' ); 25 26 // Make sure we register the premature shutdown handler as soon as possible. 27 wp_register_premature_shutdown_handler(); 22 28 23 29 /* … … 475 481 476 482 // Load the functions for the active theme, for both parent and child theme if applicable. 477 if ( ! wp_installing() || 'wp-activate.php' === $pagenow) {478 if ( TEMPLATEPATH !== STYLESHEETPATH && file_exists( STYLESHEETPATH. '/functions.php' ) ) {479 include ( STYLESHEETPATH . '/functions.php' );483 foreach ( wp_get_active_and_valid_themes() as $theme ) { 484 if ( file_exists( $theme . '/functions.php' ) ) { 485 include $theme . '/functions.php'; 480 486 } 481 if ( file_exists( TEMPLATEPATH . '/functions.php' ) ) { 482 include( TEMPLATEPATH . '/functions.php' ); 483 } 484 } 487 } 488 unset( $theme ); 485 489 486 490 /** … … 527 531 */ 528 532 do_action( 'wp_loaded' ); 533 534 /* 535 * Store the fact that we could successfully execute the entire WordPress 536 * lifecycle. This is used to skip the premature shutdown handler, as it cannot 537 * be unregistered. 538 */ 539 if ( ! defined( 'WP_EXECUTION_SUCCEEDED' ) ) { 540 define( 'WP_EXECUTION_SUCCEEDED', true ); 541 }
Note: See TracChangeset
for help on using the changeset viewer.