diff options
author | 2017-11-20 16:50:38 -0500 | |
---|---|---|
committer | 2017-11-20 16:50:38 -0500 | |
commit | 159ec5c8052e1d061a430893a4525629849e2589 (patch) | |
tree | 6613f22dab82e5c683141f53b1281e18510896ef /plugins/jetpack/_inc/lib/tracks/class.tracks-client.php | |
parent | Update akismet 4.0.1 (diff) | |
download | blogs-gentoo-159ec5c8052e1d061a430893a4525629849e2589.tar.gz blogs-gentoo-159ec5c8052e1d061a430893a4525629849e2589.tar.bz2 blogs-gentoo-159ec5c8052e1d061a430893a4525629849e2589.zip |
Update jetpack 5.5
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'plugins/jetpack/_inc/lib/tracks/class.tracks-client.php')
-rw-r--r-- | plugins/jetpack/_inc/lib/tracks/class.tracks-client.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/jetpack/_inc/lib/tracks/class.tracks-client.php b/plugins/jetpack/_inc/lib/tracks/class.tracks-client.php index 97c4a3a4..90d5b171 100644 --- a/plugins/jetpack/_inc/lib/tracks/class.tracks-client.php +++ b/plugins/jetpack/_inc/lib/tracks/class.tracks-client.php @@ -157,7 +157,10 @@ class Jetpack_Tracks_Client { $anon_id = 'jetpack:' . base64_encode( $binary ); - if ( ! headers_sent() ) { + if ( ! headers_sent() + && ! ( defined( 'REST_REQUEST' ) && REST_REQUEST ) + && ! ( defined( 'XMLRPC_REQUEST' ) && XMLRPC_REQUEST ) + ) { setcookie( 'tk_ai', $anon_id ); } } |