Make WordPress Core

Ticket #27678: taxonomy.diff

File taxonomy.diff, 517 bytes (added by jdonna, 11 years ago)

Adds filter to /wp-includes/taxonomy.php

  • taxonomy.php

     
    23912391
    23922392        $slug_provided = ! empty( $slug );
    23932393        if ( ! $slug_provided ) {
    2394                 $slug = sanitize_title($name);
     2394                $slug = apply_filters( 'pre_insert_term', sanitize_title($name));
    23952395        }
    23962396
    23972397        $term_group = 0;
     
    39313931                wp_update_term( $loop_member, $taxonomy, array( 'parent' => 0 ) );
    39323932
    39333933        return $parent;
    3934 }
    3935  No newline at end of file
     3934}