Make WordPress Core

Changeset 29549


Ignore:
Timestamp:
08/20/2014 05:03:07 PM (10 years ago)
Author:
wonderboymusic
Message:

wp_update_term() should mimic wp_insert_term() and set a value for $term_group before the alias_of logic runs. This ensures that $term_group exists when compact() is called.

See [28461].
Fixes #29278.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/taxonomy.php

    r29467 r29549  
    29582958    $parsed_args['slug'] = $slug;
    29592959
     2960    $term_group = isset( $parsed_args['term_group'] ) ? $parsed_args['term_group'] : 0;
    29602961    if ( $args['alias_of'] ) {
    29612962        $alias = $wpdb->get_row( $wpdb->prepare( "SELECT term_id, term_group FROM $wpdb->terms WHERE slug = %s", $args['alias_of'] ) );
Note: See TracChangeset for help on using the changeset viewer.