if ( is_wp_error( $tag ) && $tag->get_error_message() ) {
bbp_add_error( 'bbp_manage_topic_tag_update_error', sprintf( __( '<strong>ERROR</strong>: The following problem(s) have been found while updating the tag: %s', 'bbpress' ), $tag->get_error_message() ) );
return;
}
// Redirect
$redirect = get_term_link( $tag_id, bbp_get_topic_tag_tax_id() );
// Update counts, etc...
do_action( 'bbp_update_topic_tag', $tag_id, $tag, $name, $slug );
break;
// Merge two tags
case 'bbp-merge-topic-tag' :
// Nonce check
check_admin_referer( 'merge-tag_' . $tag_id );
// Can user edit topic tags?