From a9cf8ac3376d0d1c0e64f3188cce452700988fa2 Mon Sep 17 00:00:00 2001 From: Giri Dhar Date: Fri, 19 Feb 2016 15:39:32 +0530 Subject: [PATCH] Compliments message links are clickable --- change_log.txt | 2 ++ includes/bp-compliments-notifications.php | 4 ++-- includes/templates/buddypress/members/single/compliments.php | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/change_log.txt b/change_log.txt index 58119ba..d3cb323 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,5 +1,7 @@ v1.0.2 Compliment user settings page - ADDED +Linebreaks are removed on compliment messages - FIXED +Compliments message links are clickable - ADDED v1.0.1 Use singular name instead of slug name - FIXED diff --git a/includes/bp-compliments-notifications.php b/includes/bp-compliments-notifications.php index 42340e0..c0493a1 100644 --- a/includes/bp-compliments-notifications.php +++ b/includes/bp-compliments-notifications.php @@ -185,12 +185,12 @@ function bp_compliments_new_compliment_email_notification() { // Set up and send the message $to = $receiver_ud->user_email; - $subject = '[' . wp_specialchars_decode( bp_get_option( 'blogname' ), ENT_QUOTES ) . '] ' . sprintf( __( '%s has sent you a %s', 'bp-compliments' ), $sender_name, strtolower(BP_COMP_SINGULAR_NAME) ); + $subject = '[' . wp_specialchars_decode( bp_get_option( 'blogname' ), ENT_QUOTES ) . '] ' . sprintf( __( '%s has sent you a %s', 'bp-compliments' ), $sender_name, BP_COMP_SINGULAR_NAME ); $message = sprintf( __( '%s has sent you a %s. -To view %s\'s %s: %s', 'bp-compliments' ), $sender_name, strtolower(BP_COMP_SINGULAR_NAME), $sender_name, strtolower(BP_COMP_SINGULAR_NAME), $compliment_link ); +To view %s\'s %s: %s', 'bp-compliments' ), $sender_name, BP_COMP_SINGULAR_NAME, $sender_name, BP_COMP_SINGULAR_NAME, $compliment_link ); // Add notifications link if settings component is enabled if ( bp_is_active( 'settings' ) ) { diff --git a/includes/templates/buddypress/members/single/compliments.php b/includes/templates/buddypress/members/single/compliments.php index bb01f3a..7501664 100644 --- a/includes/templates/buddypress/members/single/compliments.php +++ b/includes/templates/buddypress/members/single/compliments.php @@ -118,7 +118,7 @@ class='preview-upload'/> message); ?> + echo make_clickable(apply_filters('the_content', $comp->message)); ?>