Changeset 3318
- Timestamp:
- 10/27/2010 04:00:19 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-templatetags.php
r3300 r3318 896 896 global $activities_template, $bp; 897 897 898 $can_comment = true; 899 898 900 if ( false === $activities_template->disable_blogforum_replies || (int)$activities_template->disable_blogforum_replies ) { 899 901 if ( 'new_blog_post' == bp_get_activity_action_name() || 'new_blog_comment' == bp_get_activity_action_name() || 'new_forum_topic' == bp_get_activity_action_name() || 'new_forum_post' == bp_get_activity_action_name() ) 900 returnfalse;902 $can_comment = false; 901 903 } 902 904 903 905 if ( 'activity_comment' == bp_get_activity_action_name() ) 904 returnfalse;905 906 return true;906 $can_comment = false; 907 908 return apply_filters( 'bp_activity_can_comment', $can_comment ); 907 909 } 908 910
Note: See TracChangeset
for help on using the changeset viewer.