Skip to:
Content

bbPress.org

Changeset 5842


Ignore:
Timestamp:
07/15/2015 09:12:51 PM (10 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.

Location:
trunk/src/includes
Files:
4 edited

Legend:

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

    r5829 r5842  
    761761     * @uses bbp_get_reply_post_type() To get the reply post type
    762762     * @uses bbp_reply_content() To output reply content
    763      * @uses bbp_get_reply_permalink() To get the reply link
     763     * @uses bbp_get_reply_url() To get the reply link
    764764     * @uses bbp_get_reply_title() To get the reply title
    765765     * @uses current_user_can() To check if the current user can edit or
  • trunk/src/includes/extend/akismet.php

    r5840 r5842  
    147147
    148148        if ( ! empty( $post_data['post_parent'] ) ) {
     149
    149150            // Use post parent for permalink
    150151            $post_permalink = get_permalink( $post_data['post_parent'] );
  • trunk/src/includes/forums/template.php

    r5841 r5842  
    10901090        $reply_id = get_post_meta( $forum_id, '_bbp_last_reply_id', true );
    10911091
    1092         if ( empty( $reply_id ) ) {
    1093             $reply_id = bbp_get_forum_last_topic_id( $forum_id );
    1094         }
    1095 
    10961092        return (int) apply_filters( 'bbp_get_forum_last_reply_id', (int) $reply_id, $forum_id );
    10971093    }
  • 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.