Changeset 55138 for trunk/src/wp-includes/global-styles-and-settings.php
- Timestamp:
- 01/25/2023 07:36:58 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/global-styles-and-settings.php
r55092 r55138 265 265 */ 266 266 function wp_theme_has_theme_json() { 267 static $theme_has_support = null; 268 269 if ( 270 null !== $theme_has_support && 271 /* 272 * Ignore static cache when `WP_DEBUG` is enabled. Why? To avoid interfering with 273 * the theme developer's workflow. 274 * 275 * @todo Replace `WP_DEBUG` once an "in development mode" check is available in Core. 276 */ 277 ! WP_DEBUG && 278 /* 279 * Ignore cache when automated test suites are running. Why? To ensure 280 * the static cache is reset between each test. 281 */ 282 ! ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS ) 283 ) { 284 return $theme_has_support; 285 } 286 267 287 // Does the theme have its own theme.json? 268 288 $theme_has_support = is_readable( get_stylesheet_directory() . '/theme.json' );
Note: See TracChangeset
for help on using the changeset viewer.