Ticket #2120: 2120.1.diff
File 2120.1.diff, 1.2 KB (added by , 12 years ago) |
---|
-
includes/users/template-tags.php
700 700 // already the user's favorite 701 701 if ( bbp_is_favorites() ) { 702 702 $permalink = bbp_get_favorites_permalink( $user_id ); 703 } elseif ( is_singular( bbp_get_topic_post_type()) ) {703 } elseif ( bbp_is_single_topic() || bbp_is_single_reply() ) { 704 704 $permalink = bbp_get_topic_permalink( $topic_id ); 705 } elseif ( is_singular( bbp_get_reply_post_type() ) ) {706 $permalink = bbp_get_topic_permalink( $topic_id );707 705 } else { 708 706 $permalink = get_permalink(); 709 707 } … … 858 856 // subscribed already 859 857 if ( bbp_is_subscriptions() ) { 860 858 $permalink = bbp_get_subscriptions_permalink( $user_id ); 861 } elseif ( is_singular( bbp_get_topic_post_type()) ) {859 } elseif ( bbp_is_single_topic() || bbp_is_single_reply() ) { 862 860 $permalink = bbp_get_topic_permalink( $topic_id ); 863 } elseif ( is_singular( bbp_get_reply_post_type() ) ) {864 $permalink = bbp_get_topic_permalink( $topic_id );865 861 } else { 866 862 $permalink = get_permalink(); 867 863 }