Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/08/2010 01:26:48 PM (15 years ago)
Author:
apeatling
Message:

Fixes #1816

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-templatetags.php

    r2594 r2626  
    523523    }
    524524
    525 function bp_the_topic_time_since_last_post( $deprecated = true ) {
     525function bp_the_topic_time_since_last_post() {
    526526    global $forum_template;
    527527
    528     if ( !$deprecated )
    529         return bp_get_the_topic_time_since_last_post();
    530     else
    531         echo bp_get_the_topic_time_since_last_post();
     528    echo bp_get_the_topic_time_since_last_post();
    532529}
    533530    function bp_get_the_topic_time_since_last_post() {
     
    879876    }
    880877
    881 function bp_the_topic_post_poster_name( $deprecated = true ) {
    882     if ( !$deprecated )
    883         return bp_get_the_topic_post_poster_name();
    884     else
    885         echo bp_get_the_topic_post_poster_name();
     878function bp_the_topic_post_poster_name() {
     879    echo bp_get_the_topic_post_poster_name();
    886880}
    887881    function bp_get_the_topic_post_poster_name() {
    888882        global $topic_template;
    889883
    890         if ( !$name = bp_core_get_userlink( $topic_template->post->poster_id ) )
     884        if ( !$link = bp_core_get_user_domain( $topic_template->post->poster_id, $topic_template->post->poster_nicename, $topic_template->post->poster_login ) )
    891885            return __( 'Deleted User', 'buddypress' );
    892886
    893         return apply_filters( 'bp_get_the_topic_post_poster_name', bp_core_get_userlink( $topic_template->post->poster_id ) );
    894     }
    895 
    896 function bp_the_topic_post_time_since( $deprecated = true ) {
    897     if ( !$deprecated )
    898         return bp_get_the_topic_post_time_since();
    899     else
    900         echo bp_get_the_topic_post_time_since();
     887        return apply_filters( 'bp_get_the_topic_post_poster_name', '<a href="' . $link . '" title="' . $topic_template->post->poster_name . '">' . $topic_template->post->poster_name . '</a>' );
     888    }
     889
     890function bp_the_topic_post_poster_link() {
     891    echo bp_get_the_topic_post_poster_link();
     892}
     893    function bp_get_the_topic_post_poster_link() {
     894        global $topic_template;
     895
     896        return apply_filters( 'bp_get_the_topic_post_poster_name', bp_core_get_user_domain( $topic_template->post->poster_id, $topic_template->post->poster_nicename, $topic_template->post->poster_login ) );
     897    }
     898
     899function bp_the_topic_post_time_since() {
     900    echo bp_get_the_topic_post_time_since();
    901901}
    902902    function bp_get_the_topic_post_time_since() {
Note: See TracChangeset for help on using the changeset viewer.