Changes between Initial Version and Version 1 of Ticket #23837, comment 6
- Timestamp:
- 03/22/2013 04:37:28 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #23837, comment 6
initial v1 2 2 > Oh, wait -- "Restore WP_Error return to get_term_link()" in r17437. :| 3 3 4 Yes, it's documented that `get_term_link()` can returna `WP_Error` object if the term doesn't exist: [[BR]]4 Yes, it's documented that `get_term_link()` returns a `WP_Error` object if the term doesn't exist: [[BR]] 5 5 http://codex.wordpress.org/Function_Reference/get_term_link#Return_Values 6 6 7 Seems like themes should either use `get_category_link()`, which still returns an empty string on error (but only accepts category ID or object), or use`is_wp_error()` check.7 Seems like Twenty Ten should either use `get_category_link()`, which still returns an empty string on error (but only accepts category ID or object), or add `is_wp_error()` check.