WordPress.org

Make WordPress Core

Ticket #17689: 17689-2.diff

File 17689-2.diff, 374 bytes (added by blepoxp, 7 years ago)

Didn't realize that it was actually sent through stripslashes() 2 lines up. Updated patch just removes sanitize_title()

  • wp-includes/taxonomy.php

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