Skip to:
Content

bbPress.org

Ticket #2581: ticket2581.patch

File ticket2581.patch, 1.1 KB (added by Robin W, 11 years ago)
  • template.php

     
    18391839                // No link
    18401840                $retval = false;
    18411841
    1842                 // Parse the arguments
    1843                 $r = bbp_parse_args( $args, array(
    1844                         'user_id'     => 0,
    1845                         'topic_id'    => 0,
    1846                         'before'      => ' | ',
    1847                         'after'       => '',
    1848                         'subscribe'   => __( 'Subscribe',   'bbpress' ),
    1849                         'unsubscribe' => __( 'Unsubscribe', 'bbpress' )
    1850                 ), 'get_forum_subscribe_link' );
    1851 
    18521842                // Get the link
    1853                 $retval = bbp_get_user_subscribe_link( $r );
     1843                $retval = bbp_get_user_subscribe_link();
    18541844
    1855                 return apply_filters( 'bbp_get_topic_subscribe_link', $retval, $r );
     1845                return apply_filters( 'bbp_get_topic_subscribe_link', $retval );
    18561846        }
    18571847
    18581848/** Topic Favorites ***********************************************************/
     
    18921882                        'after'     => '',
    18931883                        'favorite'  => __( 'Favorite',   'bbpress' ),
    18941884                        'favorited' => __( 'Unfavorite', 'bbpress' )
    1895                 ), 'get_forum_favorite_link' );
     1885                ), 'get_topic_favorite_link' );
    18961886
    18971887                // Get the link
    18981888                $retval = bbp_get_user_favorites_link( $r );