wp/wp-comments-post.php
changeset 18 be944660c56a
parent 16 a86126ab1dd4
child 19 3d72ae0968f4
--- 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(
 			'<p>' . $comment->get_error_message() . '</p>',