WordPress.org

Make WordPress Core

Ticket #17689: 17689.diff

File 17689.diff, 388 bytes (added by blepoxp, 7 years ago)

replace sanitize_title with stripslashes

  • wp-includes/taxonomy.php

     
    14541454
    14551455        $term = trim( stripslashes( $term ) );
    14561456
    1457         if ( '' === $slug = sanitize_title($term) )
     1457        if ( '' === $slug = stripslashes($term) )
    14581458                return 0;
    14591459
    14601460        $where = 't.slug = %s';