Skip to content

Commit

Permalink
Add guard
Browse files Browse the repository at this point in the history
  • Loading branch information
BogdanUngureanu committed Dec 18, 2024
1 parent 30b8fd3 commit 4e4abd8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion projects/plugins/wpcomsh/feature-plugins/blaze.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,13 @@ function wpcomsh_activate_blaze_module_on_launching( $old_value, $new_value ) {
* @return void
*/
function wpcomsh_blaze_purge_transient_cache() {
$transient = 'jetpack_blaze_site_supports_blaze_' . Jetpack_Connection::get_site_id();
$site_id = Jetpack_Connection::get_site_id();

if ( is_wp_error( $site_id ) ) {
return;
}

$transient = 'jetpack_blaze_site_supports_blaze_' . $site_id;
delete_transient( $transient );
}

Expand Down

0 comments on commit 4e4abd8

Please sign in to comment.