summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2020-02-17 11:55:41 -0500
committerAnthony G. Basile <blueness@gentoo.org>2020-02-17 11:55:41 -0500
commitdd791649a46b33fd7d5ea388fa42f1cf99c82884 (patch)
treeddc745e49425b01732343da42a19018b7dd737c4 /plugins/jetpack/src/class-tracking.php
parentRemove extraneous .zip (diff)
downloadblogs-gentoo-dd791649a46b33fd7d5ea388fa42f1cf99c82884.tar.gz
blogs-gentoo-dd791649a46b33fd7d5ea388fa42f1cf99c82884.tar.bz2
blogs-gentoo-dd791649a46b33fd7d5ea388fa42f1cf99c82884.zip
update jetpack 8.2.1
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'plugins/jetpack/src/class-tracking.php')
-rw-r--r--plugins/jetpack/src/class-tracking.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/jetpack/src/class-tracking.php b/plugins/jetpack/src/class-tracking.php
index c0744de9..5f4bf88a 100644
--- a/plugins/jetpack/src/class-tracking.php
+++ b/plugins/jetpack/src/class-tracking.php
@@ -91,8 +91,10 @@ class Tracking {
}
$connection_manager = new Connection_Manager();
- $wpcom_user_data = $connection_manager->get_connected_user_data( $user_id );
- update_user_meta( $user_id, 'jetpack_tracks_wpcom_id', $wpcom_user_data['ID'] );
+ $wpcom_user_data = $connection_manager->get_connected_user_data( $user_id );
+ if ( isset( $wpcom_user_data['ID'] ) ) {
+ update_user_meta( $user_id, 'jetpack_tracks_wpcom_id', $wpcom_user_data['ID'] );
+ }
$this->tracking->record_user_event( 'wpa_user_linked', array() );
}