summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/modules/related-posts/jetpack-related-posts.php')
-rw-r--r--plugins/jetpack/modules/related-posts/jetpack-related-posts.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/jetpack/modules/related-posts/jetpack-related-posts.php b/plugins/jetpack/modules/related-posts/jetpack-related-posts.php
index 5748e6a2..b02f5eeb 100644
--- a/plugins/jetpack/modules/related-posts/jetpack-related-posts.php
+++ b/plugins/jetpack/modules/related-posts/jetpack-related-posts.php
@@ -173,6 +173,10 @@ class Jetpack_RelatedPosts {
* @returns string
*/
public function get_target_html() {
+ if ( Jetpack_Sync_Settings::is_syncing() ) {
+ return '';
+ }
+
$options = $this->get_options();
if ( $options['show_headline'] ) {
@@ -214,6 +218,9 @@ EOT;
* @returns string
*/
public function get_target_html_unsupported() {
+ if ( Jetpack_Sync_Settings::is_syncing() ) {
+ return '';
+ }
return "\n\n<!-- Jetpack Related Posts is not supported in this context. -->\n\n";
}