Fix UTF-8 issue in comment line break filter
This commit is contained in:
parent
7ec96596e6
commit
3e3e5fed07
@ -304,7 +304,7 @@ if ( ! get_option( 'fictioneer_disable_comment_bbcodes' ) && ! get_option( 'fict
|
||||
*/
|
||||
|
||||
function fictioneer_replace_comment_line_breaks( $comment_content ) {
|
||||
$lines = preg_split( '/\R/', $comment_content );
|
||||
$lines = preg_split( '/\R/u', $comment_content );
|
||||
|
||||
$wrapped = array_map( function( $line ) {
|
||||
if ( trim( $line ) === '' ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user