diff -r 34716fd837a4 -r be944660c56a wp/wp-comments-post.php --- a/wp/wp-comments-post.php Tue Dec 15 15:52:01 2020 +0100 +++ b/wp/wp-comments-post.php Wed Sep 21 18:19:35 2022 +0200 @@ -24,7 +24,7 @@ $comment = wp_handle_comment_submission( wp_unslash( $_POST ) ); if ( is_wp_error( $comment ) ) { - $data = intval( $comment->get_error_data() ); + $data = (int) $comment->get_error_data(); if ( ! empty( $data ) ) { wp_die( '

' . $comment->get_error_message() . '

',