Changeset 6544 for trunk/src/includes/topics/template.php
- Timestamp:
- 06/14/2017 06:45:49 PM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/topics/template.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/topics/template.php
r6533 r6544 4257 4257 * 4258 4258 * @uses bbp_is_topic_edit() To check if it's the topic edit page 4259 * @uses bbp_is_user_subscribed_to_topic() To check if the user is 4260 * subscribed to the topic 4259 * @uses bbp_is_user_subscribed() To check if the user is subscribed 4261 4260 * @uses apply_filters() Calls 'bbp_get_form_topic_subscribed' with the 4262 4261 * option … … 4277 4276 // Post author is not the current user 4278 4277 if ( bbp_get_current_user_id() !== $post_author ) { 4279 $topic_subscribed = bbp_is_user_subscribed _to_topic( $post_author);4278 $topic_subscribed = bbp_is_user_subscribed( $post_author, bbp_get_topic_id() ); 4280 4279 4281 4280 // Post author is the current user 4282 4281 } else { 4283 $topic_subscribed = bbp_is_user_subscribed _to_topic( bbp_get_current_user_id() );4282 $topic_subscribed = bbp_is_user_subscribed( bbp_get_current_user_id(), bbp_get_topic_id() ); 4284 4283 } 4285 4284 4286 4285 // Get current status 4287 4286 } elseif ( bbp_is_single_topic() ) { 4288 $topic_subscribed = bbp_is_user_subscribed _to_topic( bbp_get_current_user_id() );4287 $topic_subscribed = bbp_is_user_subscribed( bbp_get_current_user_id(), bbp_get_topic_id() ); 4289 4288 4290 4289 // No data
Note: See TracChangeset
for help on using the changeset viewer.