Changeset 2586 for branches/plugin/bbp-templatetags.php
- Timestamp:
- 11/01/2010 06:07:32 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-templatetags.php
r2583 r2586 141 141 $bbp_forum_id = $wp_query->post->ID; 142 142 143 // Currently viewing a topic 144 elseif ( bbp_is_topic() ) 145 $bbp_forum_id = bbp_get_topic_forum_id(); 146 143 147 // Fallback 144 148 // @todo - experiment … … 179 183 */ 180 184 function bbp_get_forum_permalink ( $forum_id = 0 ) { 185 if ( empty( $forum_id ) ) 186 $forum_id = bbp_get_forum_id(); 187 181 188 return apply_filters( 'bbp_get_forum_permalink', get_permalink( $forum_id ) ); 182 189 } … … 533 540 elseif ( bbp_is_topic() && isset( $wp_query->post->ID ) ) 534 541 $bbp_topic_id = $wp_query->post->ID; 542 543 // Currently viewing a singular reply 544 elseif ( bbp_is_reply() ) 545 $bbp_topic_id = bbp_get_reply_topic_id(); 535 546 536 547 // Fallback
Note: See TracChangeset
for help on using the changeset viewer.