Skip to:
Content

bbPress.org

Changeset 4428


Ignore:
Timestamp:
11/16/2012 02:19:27 AM (9 years ago)
Author:
johnjamesjacoby
Message:

Revisions:

  • In bbp_get_reply_revision_log(), check the post type, and maybe return bbp_get_topic_revision_log() if post is a topic in the replies loop.
  • This happens when bbp_show_lead_topic() is set to false, which is the default.
  • See #2029.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/replies/template-tags.php

    r4363 r4428  
    604604
    605605        // Create necessary variables
    606         $reply_id     = bbp_get_reply_id( $reply_id );
     606        $reply_id = bbp_get_reply_id( $reply_id );
     607
     608        // Show the topic reply log if this is a topic in a reply loop
     609        if ( bbp_is_topic( $reply_id ) ) {
     610            return bbp_get_topic_revision_log( $reply_id );
     611        }
     612
     613        // Get the reply revision log (out of post meta
    607614        $revision_log = bbp_get_reply_raw_revision_log( $reply_id );
    608615
Note: See TracChangeset for help on using the changeset viewer.