WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/23/2010 12:55:55 PM (10 years ago)
Author:
scribu
Message:

Introduce sanitize_title_for_query(). See #9591

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/taxonomy.php

    r15922 r15929  
    535535        case 'name':
    536536            foreach ( $terms as $i => $term ) {
    537                 $terms[$i] = sanitize_term_field('slug', $term, 0, $taxonomy, 'db');
     537                $terms[$i] = sanitize_title_for_query( $term );
    538538            }
    539539            $terms = array_filter($terms);
Note: See TracChangeset for help on using the changeset viewer.