Closed darylldoyle closed 1 year ago
This fixes #43 by checking whether a WP_Term object has been returned before assigning the items property.
WP_Term
items
If a WP_Error or null is returned, we return the 404 error, as there is no nav term for that slug, despite it existing in the theme mods.
WP_Error
null
This fixes #43 by checking whether a
WP_Term
object has been returned before assigning theitems
property.If a
WP_Error
ornull
is returned, we return the 404 error, as there is no nav term for that slug, despite it existing in the theme mods.