You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@barryceelen noting that this was for a post type that does not have a taxonomy associated with it, is that a current impact for posts/pages on your client site or just a note from testing a random CPT?
@jeffpaul our site uses a post type without a taxonomy, which is indexed by sophi. As a result, the error logs keep filling up with this error. The fix would be to scan the plugin looking at where it wants to use get_the_terms() and do the due diligence of checking its return value before using it.
jeffpaul
changed the title
get_the_terms() can return an array, false or WP_Error
SIT-2935: get_the_terms() can return an array, false or WP_Error
Mar 11, 2022
get_post_breadcrumb() uses count() on the result of get_the_terms() but does not check if it is a list of terms first.
The text was updated successfully, but these errors were encountered: