Changeset 8201 for trunk/bp-activity/bp-activity-template.php
- Timestamp:
- 03/29/2014 12:40:28 AM (12 years ago)
- File:
-
- 1 edited
-
trunk/bp-activity/bp-activity-template.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-template.php
r8190 r8201 1798 1798 * @since BuddyPress (1.2) 1799 1799 * 1800 * @todo remove $counter global1801 *1802 1800 * @param object $comment The activity object currently being recursed 1803 1801 * … … 2152 2150 2153 2151 /** 2152 * Output the depth of the current activity comment. 2153 * 2154 * @since BuddyPress (2.0.0) 2155 */ 2156 function bp_activity_comment_depth() { 2157 echo bp_activity_get_comment_depth(); 2158 } 2159 /** 2160 * Return the current activity comment depth. 2161 * 2162 * @since BuddyPress (2.0.0) 2163 * 2164 * @return int 2165 */ 2166 function bp_activity_get_comment_depth() { 2167 global $activities_template; 2168 return apply_filters( 'bp_activity_get_comment_depth', $activities_template->activity->current_comment->depth ); 2169 } 2170 2171 /** 2154 2172 * Output the activity comment link. 2155 2173 * … … 2652 2670 $can_comment = true; 2653 2671 2672 if ( get_option( 'thread_comments' ) && bp_activity_get_comment_depth() >= get_option( 'thread_comments_depth' ) ) { 2673 $can_comment = false; 2674 } 2675 2654 2676 return apply_filters( 'bp_activity_can_comment_reply', $can_comment, $comment ); 2655 2677 }
Note: See TracChangeset
for help on using the changeset viewer.