Fix tag search. Props jhodgdon. see #5684
git-svn-id: http://svn.automattic.com/wordpress/trunk@6677 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9d46888a48
commit
b26cf6d97d
|
@ -269,7 +269,7 @@ function tag_rows( $page = 0, $pagesize = 20, $searchterms = '' ) {
|
||||||
$args = array('offset' => $start, 'number' => $pagesize, 'hide_empty' => 0);
|
$args = array('offset' => $start, 'number' => $pagesize, 'hide_empty' => 0);
|
||||||
|
|
||||||
if ( !empty( $searchterms ) )
|
if ( !empty( $searchterms ) )
|
||||||
$args['name__like'] = $searchterms;
|
$args['name__like'] = '%' . $searchterms;
|
||||||
|
|
||||||
$tags = get_terms( 'post_tag', $args );
|
$tags = get_terms( 'post_tag', $args );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue