Make WordPress Core


Ignore:
Timestamp:
01/29/2008 05:20:27 PM (17 years ago)
Author:
ryan
Message:

like_escape() from nbachiyski. see #5684

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r6677 r6680  
    269269    $args = array('offset' => $start, 'number' => $pagesize, 'hide_empty' => 0);
    270270 
    271     if ( !empty( $searchterms ) )
    272         $args['name__like'] = '%' . $searchterms;
     271    if ( !empty( $searchterms ) ) {
     272        $args['name__like'] = '%' . like_escape( $searchterms );
     273    }
    273274
    274275    $tags = get_terms( 'post_tag', $args );
Note: See TracChangeset for help on using the changeset viewer.