Skip to:
Content

bbPress.org

Ticket #1983: 1983-2.patch

File 1983-2.patch, 820 bytes (added by jbobich, 14 years ago)

In the first patch, I forgot to take into account the fact that it's possible $title and $link_url variables may not exist. This would solve that.

  • 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 );
    536538        }
    537539
    538540/**