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

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 24 02:08:26 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):

 > Ideally, sanitize_title_for_query() should be replaced with
 sanitize_title() in that spot, This is the same function which sanitizes
 Term names into Term Slugs, so it'll have the desired effect of converting
 'België' to 'belgie'.

 > sanitize_title() makes sense for me. It was used before [16832].

 The correct solution would be to have two versions of get_term_by(): one
 for WP_Query, that uses sanitize_title_for_query() and one for
 get_term_link() which uses sanitize_title().

 For more details on why this would be necessary, see #9591.

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


More information about the wp-trac mailing list