Skip to:
Content

bbPress.org


Ignore:
Timestamp:
04/04/2014 03:52:52 PM (8 years ago)
Author:
johnjamesjacoby
Message:

When calculating a new reply position, ensure we are using raw, unformatted integers. Fixes bug where formatted numeric strings (I.E. with commas; eg: 1,532) were being passed to the menu_order property, causing broken pagination on topics with over 1k replies. Fixes #2556.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/replies/functions.php

    r5301 r5338  
    12911291
    12921292                // Bump the reply position
    1293                 $reply_position = bbp_get_topic_reply_count( $destination_topic->ID ) + 1;
     1293                $reply_position = bbp_get_topic_reply_count( $destination_topic->ID, true ) + 1;
    12941294
    12951295                // Update the reply
Note: See TracChangeset for help on using the changeset viewer.