Make WordPress Core


Ignore:
Timestamp:
12/09/2010 10:05:19 AM (14 years ago)
Author:
scribu
Message:

Make get_term_by() use sanitize_title_for_query() too. See #9591

File:
1 edited

Legend:

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

    r16822 r16832  
    782782    if ( 'slug' == $field ) {
    783783        $field = 't.slug';
    784         $value = sanitize_title($value);
     784        $value = sanitize_title_for_query($value);
    785785        if ( empty($value) )
    786786            return false;
Note: See TracChangeset for help on using the changeset viewer.