Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix errors for @term #55

Merged
merged 1 commit into from
Feb 18, 2021
Merged

Fix errors for @term #55

merged 1 commit into from
Feb 18, 2021

Conversation

theMosaad
Copy link
Contributor

  1. →name() is not a method
  2. get_the_terms() might return false or error not always an array like get_the_category() which makes it pass the condition when terms are empty and cause errors such as Object of class WP_Term could not be converted to string at /app/..
  3. correct key for getting term ID

1. →name() is not a method
2. `get_the_terms()` might return false or error not always an array like `get_the_category()` which makes it pass the condition when terms are empty and cause errors such as `Object of class WP_Term could not be converted to string at /app/..`
3. correct key for getting term ID
@Log1x Log1x merged commit 6cf5181 into Log1x:master Feb 18, 2021
@theMosaad theMosaad deleted the patch-1 branch February 18, 2021 05:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants