WordPress.org

Make WordPress Core

Ticket #20832: 20832.removal.diff

File 20832.removal.diff, 683 bytes (added by duck_, 3 years ago)
  • wp-includes/taxonomy.php

     
    22632263        } 
    22642264 
    22652265        // If we didn't get a unique slug, try appending a number to make it unique. 
    2266         if ( !empty($args['term_id']) ) 
    2267                 $query = $wpdb->prepare( "SELECT slug FROM $wpdb->terms WHERE slug = %s AND term_id != %d", $slug, $args['term_id'] ); 
    2268         else 
    2269                 $query = $wpdb->prepare( "SELECT slug FROM $wpdb->terms WHERE slug = %s", $slug ); 
     2266        $query = $wpdb->prepare( "SELECT slug FROM $wpdb->terms WHERE slug = %s", $slug ); 
    22702267 
    22712268        if ( $wpdb->get_var( $query ) ) { 
    22722269                $num = 2;