diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2018-04-10 22:00:23 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2018-04-10 22:00:23 -0400 |
commit | a9f67089ebcadba2c7392e91d77c1b32a5515c1a (patch) | |
tree | 46d486f0aabbaa08f2ed083e1e65cf05dfcecdb8 /plugins/jetpack/sal | |
parent | Update wordpress-mobile-pack 3.3 (diff) | |
download | blogs-gentoo-a9f67089ebcadba2c7392e91d77c1b32a5515c1a.tar.gz blogs-gentoo-a9f67089ebcadba2c7392e91d77c1b32a5515c1a.tar.bz2 blogs-gentoo-a9f67089ebcadba2c7392e91d77c1b32a5515c1a.zip |
Update jetpack 6.0
Diffstat (limited to 'plugins/jetpack/sal')
-rw-r--r-- | plugins/jetpack/sal/class.json-api-site-base.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/jetpack/sal/class.json-api-site-base.php b/plugins/jetpack/sal/class.json-api-site-base.php index 98c137fd..8e60b28f 100644 --- a/plugins/jetpack/sal/class.json-api-site-base.php +++ b/plugins/jetpack/sal/class.json-api-site-base.php @@ -112,6 +112,10 @@ abstract class SAL_Site { } public function get_post_by_id( $post_id, $context ) { + // Remove the skyword tracking shortcode for posts returned via the API. + remove_shortcode( 'skyword-tracking' ); + add_shortcode( 'skyword-tracking', '__return_empty_string' ); + $post = get_post( $post_id, OBJECT, $context ); if ( ! $post ) { |