We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc406b3 commit 6162468Copy full SHA for 6162468
src/Handlers/Comment.php
@@ -56,7 +56,7 @@ public static function process( array $comment ): array {
56
57
$comment['comment_author_IP'] = IpHelper::get_client_ip();
58
59
- $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;
60
$request_path = DataHelper::parse_url( $request_uri, 'path' );
61
62
if ( empty( $request_path ) ) {
0 commit comments