mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
like_escape() from nbachiyski. see #5684
git-svn-id: https://develop.svn.wordpress.org/trunk@6680 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -268,8 +268,9 @@ function tag_rows( $page = 0, $pagesize = 20, $searchterms = '' ) {
|
||||
|
||||
$args = array('offset' => $start, 'number' => $pagesize, 'hide_empty' => 0);
|
||||
|
||||
if ( !empty( $searchterms ) )
|
||||
$args['name__like'] = '%' . $searchterms;
|
||||
if ( !empty( $searchterms ) ) {
|
||||
$args['name__like'] = '%' . like_escape( $searchterms );
|
||||
}
|
||||
|
||||
$tags = get_terms( 'post_tag', $args );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user