fix: add test in `term_exists` if any of the taxonomies do not exist.

This commit is contained in:
vnmedeiros 2021-02-08 16:01:12 -03:00
parent 1d755951c0
commit c5dc4ad063
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ class Terms extends Repository {
$terms = get_terms($args);
if (empty($terms)) {
if (empty($terms) || $terms instanceof \WP_Error) {
return false;
}