Skip to:
Content

bbPress.org

Changeset 7138


Ignore:
Timestamp:
10/01/2020 12:54:23 AM (3 years ago)
Author:
johnjamesjacoby
Message:

Replies: Set a default topic ID in bbp_get_reply_url().

This commit prevents a PHP notice when calling this function on an oddly formed reply ID.

In trunk, for 2.7. See #3379.

File:
1 edited

Legend:

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

    r7130 r7138  
    437437        // Set needed variables
    438438        $reply_id = bbp_get_reply_id( $reply_id );
     439        $topic_id = 0;
    439440
    440441        // Juggle reply & topic IDs for unpretty URL formatting
Note: See TracChangeset for help on using the changeset viewer.