Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
WP Plugins
Timeline
Commits
4f34b3c7
Commit
4f34b3c7
authored
Apr 15, 2015
by
Erick Hitter
Browse files
Hide Jetpack sharing on all timeline entries
parent
27007c86
Changes
1
Hide whitespace changes
Inline
Side-by-side
eth-timeline.php
View file @
4f34b3c7
...
...
@@ -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">—</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
();
?>
-->
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment