Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Nov 10, 2022
1 parent 8c289f1 commit de5d387
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/compat/wordpress-6.2/get-global-styles-and-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ function wp_theme_has_theme_json_clean_cache() {
* 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.
* @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 (
'update' === $options[ 'action' ] &&
'theme' === $options[ 'type' ] &&
array_key_exists( get_stylesheet(), $options[ 'themes' ] )
'update' === $options['action'] &&
'theme' === $options['type'] &&
array_key_exists( get_stylesheet(), $options['themes'] )
) {
wp_theme_has_theme_json_clean_cache();
}
Expand Down

0 comments on commit de5d387

Please sign in to comment.