Changeset 14150 for branches/14.0/tests/phpunit/testcases/activity/functions/bpActivityGetCommentDepth.php
- Timestamp:
- 12/16/2025 04:29:43 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/14.0/tests/phpunit/testcases/activity/functions/bpActivityGetCommentDepth.php
r11737 r14150 41 41 bp_has_activities( 'display_comments=threaded' ); 42 42 43 // Loop through activity comments generated in activity loop. 44 $recursive = new RecursiveIteratorIterator( new RecursiveArrayIterator( $GLOBALS['activities_template']->activities[0]->children ), RecursiveIteratorIterator::SELF_FIRST ); 45 foreach ( $recursive as $aid => $a ) { 46 if ( ! is_numeric( $aid ) || ! is_object( $a ) ) { 43 $children = $GLOBALS['activities_template']->activities[0]->children; 44 45 foreach ( array( $comment_one, $comment_one_one, $comment_two ) as $aid ) { 46 $a = BP_Activity_Activity::find_comment_in_tree( $children, $aid ); 47 48 if ( false === $a ) { 47 49 continue; 48 50 } … … 66 68 break; 67 69 } 68 69 70 } 70 71
Note: See TracChangeset
for help on using the changeset viewer.