WordPress.org

Make WordPress Core

Ticket #5670: 5670.diff

File 5670.diff, 418 bytes (added by wojtek.szkutnik, 8 years ago)
  • taxonomy.php

     
    11041104
    11051105        $term = trim( stripslashes( $term ) );
    11061106
    1107         if ( '' === $slug = sanitize_title($term) )
     1107        $slug = sanitize_title($term,'');
     1108        if ( '' === apply_filters( 'pre_insert_term', $term, $taxonomy ) )
    11081109                return 0;
    11091110
    11101111        $where = 't.slug = %s';