Open bd-viget opened 8 months ago
My suggestion would be to swap the function_exists
logic to move jetpack_is_atomic_site
2nd.
public static function is_atomic_site() {
if ( function_exists( 'jetpack_is_automated_transfer_site' ) ) {
return jetpack_is_automated_transfer_site();
}
if ( function_exists( 'jetpack_is_atomic_site' ) ) {
return jetpack_is_atomic_site();
}
return false;
}
And maybe even deprecate WC_Connect_Jetpack::is_atomic_site()
and create WC_Connect_Jetpack::is_automated_transfer_site()
?
I'm showing a frequent PHP Notice in my error logs:
The source is coming from
classes/class-wc-connect-jetpack.php
Line 64:This happens frequently, so I assume it's tied to the WP Heartbeat action.