$theme_has_support[ $stylesheet ] =
file_exists( $path );
return $theme_has_support[ $stylesheet ];
}/**
* Cleans the caches under the theme_json group.
*
* @since 6.2.0
*/
function wp_clean_theme_json_cache() { wp_cache_delete( 'wp_get_global_stylesheet', 'theme_json'
);
wp_cache_delete( 'wp_get_global_styles_svg_filters', 'theme_json'
);
wp_cache_delete( 'wp_get_global_settings_custom', 'theme_json'
);
wp_cache_delete( 'wp_get_global_settings_theme', 'theme_json'
);
wp_cache_delete( 'wp_get_global_styles_custom_css', 'theme_json'
);
WP_Theme_JSON_Resolver::
clean_cached_data();
}/**
* Returns the current theme's wanted patterns (slugs) to be
* registered from Pattern Directory.
*
* @since 6.3.0
*
* @return string[]
*/