[wp-trac] [WordPress Trac] #15449: Notice generated in get_category_link function with a category id that does not exist
WordPress Trac
wp-trac at lists.automattic.com
Wed Nov 17 17:10:27 UTC 2010
#15449: Notice generated in get_category_link function with a category id that does
not exist
------------------------------+---------------------------------------------
Reporter: kapilchugh | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.1
Component: Warnings/Notices | Version: 3.0.1
Severity: normal | Keywords: get_category_link, notice
------------------------------+---------------------------------------------
Comment(by nacin):
Not anymore, get_term_link() includes an !is_object() check. You won't see
a notice anymore, you'll get a WP_Error either way.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15449#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list