[wp-trac] [WordPress Trac] #13992: get_terms() has 'search' and 'name__like'
WordPress Trac
wp-trac at lists.automattic.com
Sat Jun 19 08:45:55 UTC 2010
#13992: get_terms() has 'search' and 'name__like'
--------------------------+-------------------------------------------------
Reporter: dd32 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.1
Component: Taxonomy | Version: 3.0
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
Both do similar things:
{{{
if ( !empty($name__like) )
$where .= " AND t.name LIKE '{$name__like}%'";
...
if ( !empty($search) ) {
$search = like_escape($search);
$where .= " AND (t.name LIKE '%$search%')";
}
}}}
name__like should be removed in favour of search IMO, unless that
functionality is intended, and in that case, name__like should get
like_escape() applied
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13992>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list