Browse files

Replace new lines with breaks.

  • Loading branch information...
1 parent 43a0732 commit 141494d941ea27e0c1ef7e7994d60c5a50532a7e @dannydb dannydb committed Jan 15, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 functions.php
View
3 functions.php
@@ -636,6 +636,9 @@ function sw_modify_retrieve_password_messsage($message, $key){
// Replace second open bracket
$message = str_replace('>', '', $message);
+ // Convert line returns to <br>'s
+ $message = str_replace("\r\n", '<br>', $message);
+
return $message;
}
add_filter('retrieve_password_message', 'sw_modify_retrieve_password_messsage', 10, 2);

0 comments on commit 141494d

Please sign in to comment.