Much of this is written so that I can come back to it in future, so bear with me!!
IF YOU JUST WANT THE ANSWER – IGNORE THIS SECTION
bbp_reply_url() calls bbp_get_reply_url.
This function does maths by dividing the reply position by the number of replies per page in /includes/replies/template on line 487
$reply_page = ceil( (int) bbp_get_reply_position( $reply_id, $topic_id ) / (int) bbp_get_replies_per_page() );
bbp_get_reply_position gets the menu order in line 1742
$reply_position = get_post_field( 'menu_order', $reply_id );
Now I’m not sure if this reply position is comma separated, or if it is blank, then the rest of this function is adding a comma. The remainder of then function calls bbp_get_reply_position_raw which is in /includes/replies/functions
this calls bbp_get_topic_reply_count, and in this function I think we have the issue.
The function is in /includes/topics/template but in includes/core/filters.php
we have a hook in line 177 which has
add_filter( 'bbp_get_topic_reply_count', 'bbp_number_format', 10 );
‘bbp_number_format’ by default pouts the 000’s comma separator in.
so if we remove this filter it should work.
END OF…..IF YOU JUST WANT THE ANSWER – IGNORE THIS SECTION
So try this in your functions file
add_action('plugins_loaded', 'rew_fix_reply_numbers');
function rew_fix_reply_numbers () {
remove_filter( 'bbp_get_topic_reply_count', 'bbp_number_format', 10 );
add_filter( 'bbp_get_topic_reply_count', 'rew_number_format', 10 );
}
function rew_number_format( $number = 0, $decimals = false, $dec_point = '.', $thousands_sep = '' ) {
// If empty, set $number to (int) 0
if ( ! is_numeric( $number ) )
$number = 0;
return apply_filters( 'rew_number_format', number_format( $number, $decimals, $dec_point, $thousands_sep ), $number, $decimals, $dec_point, $thousands_sep );
}
Let me know either way if this works !!