Skip to content

Commit 6162468

Browse files
authored
Porting fix for #585 from v2 (#622)
1 parent dc406b3 commit 6162468

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Handlers/Comment.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public static function process( array $comment ): array {
5656

5757
$comment['comment_author_IP'] = IpHelper::get_client_ip();
5858

59-
$request_uri = isset( $_SERVER['REQUEST_URI'] ) ? esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ) ) : null;
59+
$request_uri = isset( $_SERVER['SCRIPT_NAME'] ) ? esc_url_raw( wp_unslash( $_SERVER['SCRIPT_NAME'] ) ) : null;
6060
$request_path = DataHelper::parse_url( $request_uri, 'path' );
6161

6262
if ( empty( $request_path ) ) {

0 commit comments

Comments
 (0)