[wp-trac] [WordPress Trac] #23837: Twenty Ten: Fatal error in loop.php

WordPress Trac noreply at wordpress.org
Fri Mar 22 16:33:15 UTC 2013

#23837: Twenty Ten: Fatal error in loop.php
 Reporter:  keoshi         |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  3.6
Component:  Bundled Theme  |     Version:
 Severity:  major          |  Resolution:
 Keywords:                 |

Comment (by SergeyBiryukov):

 Replying to [comment:5 lancewillett]:
 > Oh, wait -- "Restore WP_Error return to get_term_link()" in r17437. :|

 Yes, it's documented that `get_term_link()` can return a `WP_Error` object
 if the term doesn't exist: [[BR]]

 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.

Ticket URL: <http://core.trac.wordpress.org/ticket/23837#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list