Fix UTF-8 issue in comment line break filter

This commit is contained in:
Tetrakern 2024-11-30 19:46:02 +01:00
parent 7ec96596e6
commit 3e3e5fed07

View File

@ -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 ) === '' ) {