get_term_by() returns WP_Error as well
|Reported by:||hakre||Owned by:|
It's not documented, but get_term_by() can return WP_Error as well in case it fails.
Code that checks for the return value only against being not empty is doing short as WP_Error never is empty.
The result are most often undefined property warnings.
Change History (13)
- Keywords 3.2-early added
- Milestone changed from Awaiting Review to Future Release
- Version changed from 3.1 to 3.0