Tracks: fix blog ID retrieval from Jetpack options.
JavaScripty syntax resulted in boolean values.
This commit is contained in:
parent
68f5ccabc1
commit
3bf58f2d48
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue