Skip to content

Commit

Permalink
Remove function_exists check
Browse files Browse the repository at this point in the history
  • Loading branch information
Swanand01 committed Jun 24, 2024
1 parent 5352953 commit 80c668a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions includes/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,8 @@ public function __construct( Shopping_Vendors $shopping_vendors ) {
* @since 1.37.0
*/
public function prime_option_caches(): void {
if ( \function_exists( 'wp_prime_option_caches_by_group' ) ) {
wp_prime_option_caches_by_group( self::SETTING_GROUP );
wp_prime_option_caches_by_group( self::SETTING_GROUP_EXPERIMENTS );
}
wp_prime_option_caches_by_group( self::SETTING_GROUP );
wp_prime_option_caches_by_group( self::SETTING_GROUP_EXPERIMENTS );

Check warning on line 180 in includes/Settings.php

View check run for this annotation

Codecov / codecov/patch

includes/Settings.php#L179-L180

Added lines #L179 - L180 were not covered by tests
}

/**
Expand Down

0 comments on commit 80c668a

Please sign in to comment.