Skip to:
Content

bbPress.org


Ignore:
Timestamp:
07/15/2015 09:12:51 PM (11 years ago)
Author:
johnjamesjacoby
Message:

IDs: Some reply functions still default to their topics if no replies are present. This functionality has slowly been removed over time and built into respective functions. In this changeset, we remove those leftover assignments and update a few phpdoc descriptions as needed.

Hat-tip netweb. See #2806.

File:
1 edited

Legend:

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

    r5841 r5842  
    20112011        $reply_id = get_post_meta( $topic_id, '_bbp_last_reply_id', true );
    20122012
    2013         if ( empty( $reply_id ) ) {
    2014             $reply_id = $topic_id;
    2015         }
    2016 
    20172013        return (int) apply_filters( 'bbp_get_topic_last_reply_id', (int) $reply_id, $topic_id );
    20182014    }
     
    20982094     * @uses bbp_get_topic_last_reply_id() To get the topic last reply id
    20992095     * @uses bbp_get_reply_url() To get the reply url
    2100      * @uses bbp_get_reply_permalink() To get the reply permalink
     2096     * @uses bbp_get_topic_permalink() To get the topic permalink
    21012097     * @uses apply_filters() Calls 'bbp_get_topic_last_topic_url' with
    21022098     *                        the reply url and topic id
Note: See TracChangeset for help on using the changeset viewer.