Changeset 8712 for trunk/src/bp-blogs/bp-blogs-activity.php
- Timestamp:
- 07/29/2014 01:45:50 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-blogs/bp-blogs-activity.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-blogs/bp-blogs-activity.php
r8475 r8712 851 851 * @return string 852 852 */ 853 function bp_blogs_activity_comment_permalink( $retval ) {853 function bp_blogs_activity_comment_permalink( $retval = '' ) { 854 854 global $activities_template; 855 855 856 if ( isset( buddypress()->blogs->allow_comments[$activities_template->activity->current_comment->item_id] ) ){ 856 // Get the current comment ID 857 $item_id = isset( $activities_template->activity->current_comment->item_id ) 858 ? $activities_template->activity->current_comment->item_id 859 : false; 860 861 // Maybe adjust the link if item ID exists 862 if ( ( false !== $item_id ) && isset( buddypress()->blogs->allow_comments[ $item_id ] ) ) { 857 863 $retval = $activities_template->activity->current_comment->primary_link; 858 864 }
Note: See TracChangeset
for help on using the changeset viewer.