WordPress.org

Make WordPress Core

Ticket #4651: get_term_by_slug_fix.diff

File get_term_by_slug_fix.diff, 410 bytes (added by cavemonkey50, 7 years ago)
  • wp-includes/taxonomy.php

     
    132132 
    133133        if ( 'slug' == $field ) { 
    134134                $field = 't.slug'; 
    135                 $value = sanitize_title($field); 
     135                $value = sanitize_title($value); 
    136136                if ( empty($value) ) 
    137137                        return false; 
    138138        } else if ( 'name' == $field ) {