Skip to content

Commit

Permalink
Return false if global post is not set.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterwilsoncc committed May 28, 2023
1 parent ac67d34 commit 5146bf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/push-ui.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function syndicatable() {
// Retrieve the current global post, bail if not set.
$post = get_post();
if ( empty( $post ) ) {
return;
return false;
}

/**
Expand Down

0 comments on commit 5146bf7

Please sign in to comment.