Ticket #22560: 22560.2.diff
| File 22560.2.diff, 1.0 KB (added by ryan, 6 months ago) |
|---|
-
wp-includes/taxonomy.php
2238 2238 return new WP_Error( 'db_insert_error', __( 'Could not insert term relationship into the database' ), $wpdb->last_error ); 2239 2239 } 2240 2240 2241 wp_cache_delete( $object_id, $taxonomy . '_relationships' ); 2242 2241 2243 do_action('set_object_terms', $object_id, $terms, $tt_ids, $taxonomy, $append, $old_tt_ids); 2242 2244 return $tt_ids; 2243 2245 } -
wp-includes/post.php
3196 3196 $tags = array_unique( array_map( 'intval', $tags ) ); 3197 3197 } 3198 3198 3199 $r = wp_set_object_terms( $post_id, $tags, $taxonomy, $append ); 3200 if ( is_wp_error( $r ) ) 3201 return $r; 3202 3203 wp_cache_delete( $post_id, $taxonomy . '_relationships' ); 3204 3205 return $r; 3199 return wp_set_object_terms( $post_id, $tags, $taxonomy, $append ); 3206 3200 } 3207 3201 3208 3202 /**
