Ticket #768: template-functionssansreplies.patch

File template-functionssansreplies.patch, 0.6 kB (added by fel64, 1 year ago)
  • template-functions.php

    old new  
    603603        return apply_filters( 'get_topic_link', $link, $topic->topic_id ); 
    604604} 
    605605 
    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  
    613606function topic_rss_link( $id = 0 ) { 
    614607        echo apply_filters('topic_rss_link', get_topic_rss_link($id), $id ); 
    615608}