Bugfix: Incorrect menu_order if topic has over 1,000 replies
-
A really small bug caused incorrect menu_order of new replies if a topic reached over 1000 replies.
The solve this the file includes/replies/functions.php has to be changed.
Line 264: ‘menu_order’ => bbp_get_topic_reply_count( $topic_id, false ) + 1;Should be: ‘menu_order’ => bbp_get_topic_reply_count( $topic_id, true ) + 1;
If not true a comma will be added for the thousands. Which results in only the number before the comma will be used.
I will be glad to see this will be changed in the next version of bbPress.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.