Skip to:
Content

bbPress.org

Ticket #1983: 1983-3.patch

File 1983-3.patch, 1.3 KB (added by jbobich, 14 years ago)

Added same parameters to bbp_get_topic_freshness_link in the same order. Also added $active_id to bbp_get_forum_freshness_link, but note it has been added as the last parameter. This is necessary so someone could theoretically use the same function to filter both of these if they were to disregard $active_id.

  • bbp-includes/topics/template-tags.php

     
    18161816                else
    18171817                        $anchor = __( 'No Replies', 'bbpress' );
    18181818
    1819                 return apply_filters( 'bbp_get_topic_freshness_link', $anchor, $topic_id );
     1819                return apply_filters( 'bbp_get_topic_freshness_link', $anchor, $topic_id, $time_since, $link_url, $title );
    18201820        }
    18211821
    18221822/**
  • bbp-includes/forums/template-tags.php

     
    510510        function bbp_get_forum_freshness_link( $forum_id = 0 ) {
    511511                $forum_id  = bbp_get_forum_id( $forum_id );
    512512                $active_id = bbp_get_forum_last_active_id( $forum_id );
    513 
     513                $link_url = '';
     514                $title = '';
     515               
    514516                if ( empty( $active_id ) )
    515517                        $active_id = bbp_get_forum_last_reply_id( $forum_id );
    516518
     
    532534                else
    533535                        $anchor = __( 'No Topics', 'bbpress' );
    534536
    535                 return apply_filters( 'bbp_get_forum_freshness_link', $anchor, $forum_id );
     537                return apply_filters( 'bbp_get_forum_freshness_link', $anchor, $forum_id, $time_since, $link_url, $title, $active_id );
    536538        }
    537539
    538540/**