Changeset 13436 for trunk/src/bp-activity/bp-activity-functions.php
- Timestamp:
- 03/15/2023 08:16:46 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-functions.php
r13395 r13436 3263 3263 $link = $activity_obj->primary_link; 3264 3264 } else { 3265 if ( 'activity_comment' == $activity_obj->type ) { 3266 $link = bp_get_root_domain() . '/' . bp_get_activity_root_slug() . '/p/' . $activity_obj->item_id . '/#acomment-' . $activity_obj->id; 3265 $path_chunks = array( 3266 'component_id' => 'activity', 3267 'single_item_action' => 'p', 3268 'single_item_action_variables' => array( $activity_obj->id ), 3269 ); 3270 3271 if ( 'activity_comment' === $activity_obj->type ) { 3272 $path_chunks['single_item_action_variables'] = array( $activity_obj->item_id ); 3273 3274 $link = bp_rewrites_get_url( $path_chunks ) . '#acomment-' . $activity_obj->id; 3267 3275 } else { 3268 $link = bp_ get_root_domain() . '/' . bp_get_activity_root_slug() . '/p/' . $activity_obj->id . '/';3276 $link = bp_rewrites_get_url( $path_chunks ); 3269 3277 } 3270 3278 }
Note: See TracChangeset
for help on using the changeset viewer.