WordPress.org

Make WordPress Core

Ticket #6593: 6593_stripslash_against_11151.diff

File 6593_stripslash_against_11151.diff, 432 bytes (added by jhodgdon, 5 years ago)

Ryan is too fast for me. This patch is against [11151]

  • wp-includes/taxonomy.php

     
    865865                        return $wpdb->get_var( $wpdb->prepare( $select . $where, $term ) ); 
    866866        } 
    867867 
    868     $term = trim( $term ); 
     868        $term = trim( slipslashes( $term )); 
    869869     
    870870        if ( '' === $slug = sanitize_title($term) ) 
    871871                return 0;