Skip to content

Commit

Permalink
Compliments message links are clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
viruthagiri committed Feb 19, 2016
1 parent d85fa1a commit a9cf8ac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions change_log.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions includes/bp-compliments-notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class='preview-upload'/>
</div>
</div>
<?php
echo stripcslashes($comp->message); ?>
echo make_clickable(apply_filters('the_content', $comp->message)); ?>
</div>
</div>
</li>
Expand Down

0 comments on commit a9cf8ac

Please sign in to comment.