Skip to:
Content
Pages
Categories
Search
Top
Bottom

Bugfix: Incorrect menu_order if topic has over 1,000 replies


  • Remi
    Participant

    @drpepper75

    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 1 replies (of 1 total)

  • Superbio
    Participant

    @superbio

    So many thanks, Remi. That really helped a lot!

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.