Skip to content

Commit

Permalink
Update Core.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Helmut Januschka committed Sep 15, 2019
1 parent c3be66a commit 099067f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ public function krn_index_object_w($a, $b = null, $c = null)

public function krn_index_object($post_id)
{
if(!function_exists("ep_prepare_post")) {
//No elasticpress installed
return;
}
$blocking = true;
$post = get_post($post_id);
if ($post->post_status == 'auto-draft') {
Expand Down

0 comments on commit 099067f

Please sign in to comment.