WordPress.org

Make WordPress Core

Changeset 5865


Ignore:
Timestamp:
08/14/2007 02:46:06 AM (11 years ago)
Author:
ryan
Message:

sanitize the value, not the field. Props cavemonkey50. fixes #4651

File:
1 edited

Legend:

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

    r5807 r5865  
    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;
Note: See TracChangeset for help on using the changeset viewer.