Line-feeds removed
-
Hi,
If a person submits a prayer request and/or praise report and uses the enter key to format their text, when the item is displayed using the shortcodes, all newline feeds are removed by the browser, making the request difficult to read.For example:
I would like you to prey for me and my mother
She is ill and may be going into an assisted care facility,
Thank you
bevomes:
I would like you to prey for me and my mother. She is ill, and may be going into an assisted care facility, Thank you
This can be fixed by changing line 109 in /shortcode/views/wp-prayer-engine.php to :
echo ‘ <h5>’.$pray->prayer_title.'</h5><p>’.nl2br($pray->prayer_messages).'</p><div class=”postmeta”>’;
and line 69 of /shortcode/views/wp-prayer-praise.php
<p>’.nl2br($pray->prayer_messages).'</p>
Thanks
- The topic ‘Line-feeds removed’ is closed to new replies.