add wpautop to user description

fix #279
This commit is contained in:
Matthias Pfefferle 2023-05-23 12:26:02 +02:00
parent 2c7f0687cc
commit 2aa7077ae7

View file

@ -205,7 +205,7 @@ function get_author_description( $user_id ) {
if ( empty( $description ) ) {
$description = get_user_meta( $user_id, 'description', true );
}
return $description;
return \wpautop( \wp_kses( $description, 'default' ) );
}
/**