WordPress.org

Make WordPress Core

Ticket #22560: 22560.diff

File 22560.diff, 851 bytes (added by ryan, 5 years ago)
  • wp-includes/taxonomy.php

     
    22382238                                return new WP_Error( 'db_insert_error', __( 'Could not insert term relationship into the database' ), $wpdb->last_error );
    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;
    22432245}
  • wp-includes/post.php

     
    32003200        if ( is_wp_error( $r ) )
    32013201                return $r;
    32023202
    3203         wp_cache_delete( $post_id, $taxonomy . '_relationships' );
    3204 
    32053203        return $r;
    32063204}
    32073205