Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Commit

Permalink
Update Acf.php
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenjacoby committed May 27, 2021
1 parent af84ce8 commit bee62f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Module/Acf.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ public function setData($acf)
{
$query = get_queried_object();

if (!acf_get_valid_post_id($query)) {
return;
}

if (is_bool($acf)) {
$this->data = get_fields($query);
}
Expand Down

0 comments on commit bee62f4

Please sign in to comment.