Skip to:
Content

bbPress.org

Changeset 6020


Ignore:
Timestamp:
04/29/2016 11:44:40 PM (6 years ago)
Author:
netweb
Message:

Forums: Overzealous type coercion caused bbp_forum_query_last_reply_id() to skip the database query in every instance (since 0 is never === false). As such, the resetting of _bbp_last_reply_id got short-circuted in some cases.

This fix is for the 2.5 branch, /trunk fixed this inadvertantly in [5954]

Props boonebgorges, mauteri.
Fixes #2414.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/includes/forums/functions.php

    r5171 r6020  
    19321932
    19331933    $cache_id = 'bbp_get_forum_' . $forum_id . '_reply_id';
    1934     $reply_id = (int) wp_cache_get( $cache_id, 'bbpress_posts' );
     1934    $reply_id = wp_cache_get( $cache_id, 'bbpress_posts' );
    19351935
    19361936    if ( false === $reply_id ) {
Note: See TracChangeset for help on using the changeset viewer.