Skip to:
Content

bbPress.org


Ignore:
Timestamp:
04/04/2014 03:52:52 PM (11 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/topics/functions.php

    r5310 r5338  
    16291629            // Get topic reply count for existing topic
    16301630            case 'existing' :
    1631                 $reply_position = bbp_get_topic_reply_count( $destination_topic->ID );
     1631                $reply_position = bbp_get_topic_reply_count( $destination_topic->ID, true );
    16321632                break;
    16331633
Note: See TracChangeset for help on using the changeset viewer.