Ticket #768: template-functionssansreplies.patch
| File template-functionssansreplies.patch, 0.6 kB (added by fel64, 1 year ago) |
|---|
-
template-functions.php
old new 603 603 return apply_filters( 'get_topic_link', $link, $topic->topic_id ); 604 604 } 605 605 606 function bb_add_replies_to_topic_link( $link, $id ) {607 $topic = get_topic( get_topic_id( $id ) );608 if ( bb_is_user_logged_in() )609 $link = add_query_arg( 'replies', $topic->topic_posts, $link );610 return $link;611 }612 613 606 function topic_rss_link( $id = 0 ) { 614 607 echo apply_filters('topic_rss_link', get_topic_rss_link($id), $id ); 615 608 }