Skip to content
Snippets Groups Projects
Commit 4f34b3c7 authored by Erick Hitter's avatar Erick Hitter
Browse files

Hide Jetpack sharing on all timeline entries

parent 27007c86
Branches
No related tags found
No related merge requests found
...@@ -402,6 +402,7 @@ class ETH_Timeline { ...@@ -402,6 +402,7 @@ class ETH_Timeline {
if ( ! empty( $content ) ) { if ( ! empty( $content ) ) {
$removed = remove_filter( 'the_content', 'wpautop' ); $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">'; echo ' <span class="eth-timeline-sep">&mdash;</span> <span class="eth-timeline-body">';
the_content(); the_content();
...@@ -410,6 +411,7 @@ class ETH_Timeline { ...@@ -410,6 +411,7 @@ class ETH_Timeline {
if ( $removed ) { if ( $removed ) {
add_filter( 'the_content', 'wpautop' ); add_filter( 'the_content', 'wpautop' );
} }
remove_filter( 'sharing_show', '__return_false' );
} }
?> ?>
</li><!-- .eth-timeline-item#eth-timeline-<?php the_ID(); ?> --> </li><!-- .eth-timeline-item#eth-timeline-<?php the_ID(); ?> -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment