Tracks: fix blog ID retrieval from Jetpack options.

JavaScripty syntax resulted in boolean values.
This commit is contained in:
Jeff Stieler 2019-06-27 14:15:17 -06:00
parent 68f5ccabc1
commit 3bf58f2d48
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ class WC_Tracks {
$blog_details = array(
'url' => home_url(),
'blog_lang' => get_user_locale( $user_id ),
'blog_id' => ( class_exists( 'Jetpack' ) && Jetpack_Options::get_option( 'id' ) ) || null,
'blog_id' => class_exists( 'Jetpack_Options' ) ? Jetpack_Options::get_option( 'id' ) : null,
'products_count' => self::get_products_count(),
);
set_transient( 'wc_tracks_blog_details', $blog_details, DAY_IN_SECONDS );