Skip to:
Content

bbPress.org


Ignore:
Timestamp:
02/18/2011 10:16:22 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Decouple bbp_is_ functionality from bbp_get_{post_type}_id functionality, and use correctly through-out. Add ability to show all forums regardless of post_parent, and fix forums widget to use this functionality correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-user-template.php

    r2894 r2914  
    889889            $post_id = $args;
    890890
    891         if ( bbp_get_topic_id( $post_id ) )
     891        if ( bbp_is_topic( $post_id ) )
    892892            return bbp_get_topic_author_link( $args );
    893         elseif ( bbp_get_reply_id( $post_id ) )
     893        elseif ( bbp_is_reply( $post_id ) )
    894894            return bbp_get_reply_author_link( $args );
    895895        else
Note: See TracChangeset for help on using the changeset viewer.