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

Commits on Feb 18, 2021

  1. Fix warnings for @term

    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
    theMosaad committed Feb 18, 2021
    Configuration menu
    Copy the full SHA
    d0181ca View commit details
    Browse the repository at this point in the history