Changeset 10894 for trunk/src/bp-activity/bp-activity-template.php
- Timestamp:
- 06/22/2016 09:10:09 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.