[wp-trac] [WordPress Trac] #8214: get_terms should support term descriptions

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 2 03:30:08 UTC 2011


#8214: get_terms should support term descriptions
-----------------------------------+-----------------------------
 Reporter:  AaronCampbell          |       Owner:
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  Future Release
Component:  Taxonomy               |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |
-----------------------------------+-----------------------------
Changes (by aaroncampbell):

 * cc: aaroncampbell (added)
 * keywords:  needs-patch => has-patch 2nd-opinion


Comment:

 I just refreshed the patch.  It still matches only the beginning of the
 description just like `name__like` only matches the beginning of the name.
 I know it's somewhat limiting but performance-wise it seems better.  Maybe
 we should also consider adding tt.description  to the search?  Something
 like:
 {{{
 if ( !empty($search) ) {
         $search = like_escape($search);
         $where .= " AND (t.name LIKE '%$search%' OR tt.description LIKE
 '%$search%')";
 }
 }}}

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


More information about the wp-trac mailing list