Make WordPress Core

Changeset 55891


Ignore:
Timestamp:
06/07/2023 08:27:17 PM (3 years ago)
Author:
danielbachhuber
Message:

Bootstrap/Load: Revert [55890].

As it turns out, WP-CLI *also* doesn't define( 'WP_USE_THEMES', true );, which means an active theme's functions.php isn't loaded by default and causes a backwards compatibility break.

See #57928.

Location:
trunk
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/load.php

    r55890 r55891  
    949949        }
    950950
    951         if ( ! wp_using_themes() ) {
    952                 return $themes;
    953         }
    954 
    955951        if ( TEMPLATEPATH !== STYLESHEETPATH ) {
    956952                $themes[] = STYLESHEETPATH;
  • trunk/tests/phpunit/includes/bootstrap.php

    r55890 r55891  
    253253        define( 'WP_DEFAULT_THEME', 'default' );
    254254}
    255 define( 'WP_USE_THEMES', true );
    256255$wp_theme_directories = array();
    257256
Note: See TracChangeset for help on using the changeset viewer.