Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing the 4.5 conditional block. #6337

Merged
merged 1 commit into from
Feb 9, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions modules/likes.php
Original file line number Diff line number Diff line change
Expand Up @@ -986,16 +986,8 @@ function is_likes_visible() {

$post = get_post();

// @todo: Remove this block when 4.5 is the minimum
global $wp_version;
$comment_popup = false;
if ( version_compare( $wp_version, '4.5-alpha', '<=' ) ) {
$comment_popup = is_comments_popup();
}
// End 4.5 conditional block.

// Never show on feeds or previews
if ( is_feed() || is_preview() || $comment_popup ) { // @todo: Remove $comment_popup when 4.5 is minimum.
if ( is_feed() || is_preview() ) {
$enabled = false;

// Not a feed or preview, so what is it?
Expand Down