Skip to content

Commit

Permalink
fix: change get_term_by field from title to name (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszswol authored Aug 23, 2023
1 parent 52d99c7 commit 5c03191
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Crumb.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function build()
return $this->add(
$tag,
null,
get_term_by('title', $tag, 'post_tag')->term_id,
get_term_by('name', $tag, 'post_tag')->term_id,
true
);
}
Expand Down Expand Up @@ -161,7 +161,7 @@ public function build()
return $this->add(
$term,
null,
get_term_by('title', $term, get_query_var('taxonomy'))->term_id
get_term_by('name', $term, get_query_var('taxonomy'))->term_id
);
}

Expand Down

0 comments on commit 5c03191

Please sign in to comment.