Ticket #2493: 2493.patch
| File 2493.patch, 2.8 KB (added by , 13 years ago) |
|---|
-
includes/forums/template.php
2245 2245 * @uses bbp_is_forum_edit() To check if it's the forum edit page 2246 2246 * @uses bbp_get_global_post_field() To get current post author 2247 2247 * @uses bbp_get_current_user_id() To get the current user id 2248 * @uses bbp_is_user_subscribed () To check if the user is subscribed to2249 * the forum2248 * @uses bbp_is_user_subscribed_to_forum() To check if the user is 2249 * subscribed to the forum 2250 2250 * @uses apply_filters() Calls 'bbp_get_form_forum_subscribed' with the 2251 2251 * option 2252 2252 * @return string Checked value of forum subscription … … 2265 2265 2266 2266 // Post author is not the current user 2267 2267 if ( bbp_get_current_user_id() !== $post_author ) { 2268 $forum_subscribed = bbp_is_user_subscribed ( $post_author );2268 $forum_subscribed = bbp_is_user_subscribed_to_forum( $post_author ); 2269 2269 2270 2270 // Post author is the current user 2271 2271 } else { 2272 $forum_subscribed = bbp_is_user_subscribed ( bbp_get_current_user_id() );2272 $forum_subscribed = bbp_is_user_subscribed_to_forum( bbp_get_current_user_id() ); 2273 2273 } 2274 2274 2275 2275 // Get current status 2276 2276 } elseif ( bbp_is_single_forum() ) { 2277 $forum_subscribed = bbp_is_user_subscribed ( bbp_get_current_user_id() );2277 $forum_subscribed = bbp_is_user_subscribed_to_forum( bbp_get_current_user_id() ); 2278 2278 2279 2279 // No data 2280 2280 } else { -
includes/topics/template.php
3898 3898 * @since bbPress (r2976) 3899 3899 * 3900 3900 * @uses bbp_is_topic_edit() To check if it's the topic edit page 3901 * @uses bbp_is_user_subscribed () To check if the user is subscribed to3902 * the topic3901 * @uses bbp_is_user_subscribed_to_topic() To check if the user is 3902 * subscribed to the topic 3903 3903 * @uses apply_filters() Calls 'bbp_get_form_topic_subscribed' with the 3904 3904 * option 3905 3905 * @return string Checked value of topic subscription … … 3918 3918 3919 3919 // Post author is not the current user 3920 3920 if ( bbp_get_current_user_id() !== $post_author ) { 3921 $topic_subscribed = bbp_is_user_subscribed ( $post_author );3921 $topic_subscribed = bbp_is_user_subscribed_to_topic( $post_author ); 3922 3922 3923 3923 // Post author is the current user 3924 3924 } else { 3925 $topic_subscribed = bbp_is_user_subscribed ( bbp_get_current_user_id() );3925 $topic_subscribed = bbp_is_user_subscribed_to_topic( bbp_get_current_user_id() ); 3926 3926 } 3927 3927 3928 3928 // Get current status 3929 3929 } elseif ( bbp_is_single_topic() ) { 3930 $topic_subscribed = bbp_is_user_subscribed ( bbp_get_current_user_id() );3930 $topic_subscribed = bbp_is_user_subscribed_to_topic( bbp_get_current_user_id() ); 3931 3931 3932 3932 // No data 3933 3933 } else {
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)