From 8c289f12db1784152d65a9faca7ed8ff5b848c3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= <583546+oandregal@users.noreply.github.com> Date: Wed, 9 Nov 2022 17:06:24 -0700 Subject: [PATCH] Add PHPDoc --- .../wordpress-6.2/get-global-styles-and-settings.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/compat/wordpress-6.2/get-global-styles-and-settings.php b/lib/compat/wordpress-6.2/get-global-styles-and-settings.php index 23af04b0968f1f..6d89f1ad521885 100644 --- a/lib/compat/wordpress-6.2/get-global-styles-and-settings.php +++ b/lib/compat/wordpress-6.2/get-global-styles-and-settings.php @@ -46,12 +46,21 @@ function wp_theme_has_theme_json() { } if ( ! function_exists( 'wp_theme_has_theme_json_clean_cache' ) ) { + /** + * Function to clean the cache used by wp_theme_has_theme_json method. + */ function wp_theme_has_theme_json_clean_cache() { wp_cache_delete( 'wp_theme_has_theme_json', 'theme_json' ); } } if ( ! function_exists( '_wp_theme_has_theme_json_clean_cache_upon_upgrading_active_theme' ) ) { + /** + * Private function to clean the cache used by wp_theme_has_theme_json method. + * + * @param WP_Upgrader $upgrader Instance of WP_Upgrader class. + * @param array $options Metadata that identifies the data that is updated. + */ function _wp_theme_has_theme_json_clean_cache_upon_upgrading_active_theme( $upgrader, $options ) { // The cache only needs cleaning when the active theme was updated. if (