Changeset 10894
- Timestamp:
- 06/22/2016 09:10:09 PM (9 years ago)
- Location:
- trunk/src/bp-activity
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-functions.php
r10869 r10894 3031 3031 } else { 3032 3032 if ( 'activity_comment' == $activity_obj->type ) { 3033 $link = bp_get_root_domain() . '/' . bp_get_activity_root_slug() . '/p/' . $activity_obj->item_id . '/ ';3033 $link = bp_get_root_domain() . '/' . bp_get_activity_root_slug() . '/p/' . $activity_obj->item_id . '/#acomment-' . $activity_obj->id; 3034 3034 } else { 3035 3035 $link = bp_get_root_domain() . '/' . bp_get_activity_root_slug() . '/p/' . $activity_obj->id . '/'; -
trunk/src/bp-activity/bp-activity-template.php
r10853 r10894 2421 2421 * @since 1.8.0 2422 2422 * 2423 *2424 2423 * @return string $link The activity comment permalink. 2425 2424 */ … … 2427 2426 global $activities_template; 2428 2427 2429 // Check that comment exists. 2428 $link = bp_activity_get_permalink( $activities_template->activity->id, $activities_template->activity ); 2429 2430 // Used for filter below. 2430 2431 $comment_id = isset( $activities_template->activity->current_comment->id ) 2431 2432 ? $activities_template->activity->current_comment->id 2432 2433 : 0; 2433 2434 // Setup the comment link.2435 $comment_link = ! empty( $comment_id )2436 ? '#acomment-' .$comment_id2437 : false;2438 2439 // Append comment ID to end of activity permalink.2440 $link = bp_activity_get_permalink( $activities_template->activity->id, $activities_template->activity ) . $comment_link;2441 2434 2442 2435 /**
Note: See TracChangeset
for help on using the changeset viewer.