Skip to content

Commit

Permalink
Porting fix for #585 from v2 (#622)
Browse files Browse the repository at this point in the history
  • Loading branch information
2ndkauboy authored Oct 10, 2024
1 parent dc406b3 commit 6162468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Handlers/Comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static function process( array $comment ): array {

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

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

if ( empty( $request_path ) ) {
Expand Down

0 comments on commit 6162468

Please sign in to comment.