[wp-trac] [WordPress Trac] #12245: Canonical Backtrace
WordPress Trac
wp-trac at lists.automattic.com
Tue Feb 16 05:07:09 UTC 2010
#12245: Canonical Backtrace
--------------------------+-------------------------------------------------
Reporter: miqrogroove | Owner: markjaquith
Type: defect (bug) | Status: new
Priority: high | Milestone: 3.0
Component: Canonical | Version: 3.0
Severity: normal | Keywords: needs-testing
--------------------------+-------------------------------------------------
Comment(by nacin):
Fly-by debug: First one is we only check for WP_Error in get_term_link(),
when get_term() may return null, get_term_by() may return false.
Second one is in redirect_canonical(), we're getting a return value of
get_term_link() and not validating it a link, as it may be returning
WP_Error, false, or null.
If the term doesn't exist, sounds like we should never get to this point,
though.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12245#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list