Fix tag search. Props jhodgdon. see #5684
git-svn-id: https://develop.svn.wordpress.org/trunk@6677 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
520265c87d
commit
a659b0badb
|
@ -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