From 4f34b3c74ac96dc2d76b6300a447df91c927ff99 Mon Sep 17 00:00:00 2001
From: Erick Hitter <erick@ethitter.com>
Date: Wed, 15 Apr 2015 06:15:28 +0000
Subject: [PATCH] Hide Jetpack sharing on all timeline entries

---
 eth-timeline.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/eth-timeline.php b/eth-timeline.php
index 1f8d95c..93aed63 100644
--- a/eth-timeline.php
+++ b/eth-timeline.php
@@ -402,6 +402,7 @@ class ETH_Timeline {
 
 						if ( ! empty( $content ) ) {
 							$removed = remove_filter( 'the_content', 'wpautop' );
+							add_filter( 'sharing_show', '__return_false' );
 
 							echo ' <span class="eth-timeline-sep">&mdash;</span> <span class="eth-timeline-body">';
 							the_content();
@@ -410,6 +411,7 @@ class ETH_Timeline {
 							if ( $removed ) {
 								add_filter( 'the_content', 'wpautop' );
 							}
+							remove_filter( 'sharing_show', '__return_false' );
 						}
 					?>
 				</li><!-- .eth-timeline-item#eth-timeline-<?php the_ID(); ?> -->
-- 
GitLab