[wp-trac] [WordPress Trac] #13081: Make $taxonomy optional in get_term_link()

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 1 00:05:02 UTC 2010


#13081: Make $taxonomy optional in get_term_link()
-------------------------+--------------------------------------------------
 Reporter:  scribu       |       Owner:  scribu          
     Type:  enhancement  |      Status:  assigned        
 Priority:  low          |   Milestone:  3.1             
Component:  Taxonomy     |     Version:                  
 Severity:  normal       |    Keywords:  has-patch commit
-------------------------+--------------------------------------------------
Changes (by scribu):

  * keywords:  has-patch => has-patch commit
  * milestone:  Awaiting Triage => 3.1


Comment:

 Replying to [comment:1 nacin]:
 > if !is_object($term) we would need to then return WP_Error if we don't
 get a $taxonomy either.

 We would get a WP_Error from get_term() or get_term_by() so it's taken
 care of.

 Patch still applies clean.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13081#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list