Make WordPress Core


Ignore:
Timestamp:
11/27/2012 07:42:38 PM (12 years ago)
Author:
ryan
Message:

Clear the object term relationships cache in wp_set_object_terms() rather than wp_set_post_terms(). This should be done lower in the stack than wp_set_post_terms().

Props batmoo
fixes #22560

File:
1 edited

Legend:

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

    r22634 r22878  
    22392239    }
    22402240
     2241    wp_cache_delete( $object_id, $taxonomy . '_relationships' );
     2242
    22412243    do_action('set_object_terms', $object_id, $terms, $tt_ids, $taxonomy, $append, $old_tt_ids);
    22422244    return $tt_ids;
Note: See TracChangeset for help on using the changeset viewer.