[wp-trac] [WordPress Trac] #16282: PHP catchable error with get_term_link and WP3.1RC2

WordPress Trac wp-trac at lists.automattic.com
Sun Jan 23 21:01:46 UTC 2011


#16282: PHP catchable error with get_term_link and WP3.1RC2
------------------------------+-----------------------
 Reporter:  illutic           |       Owner:
     Type:  defect (bug)      |      Status:  reopened
 Priority:  normal            |   Milestone:  3.1
Component:  Multisite         |     Version:  3.1
 Severity:  major             |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+-----------------------

Comment (by scribu):

 No, as explained, get_term_link() only supports passing an actual term
 slug, not a term name.

 The fact that afterwards {{{get_term_by('slug', ...)}}} calls
 sanitize_title_for_query() internally is a different matter. I would say
 it causes more harm than good.

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


More information about the wp-trac mailing list