Skip to content

Commit 6302fe8

Browse files
turtlepodCopilot
andauthored
Update inc/classes/class-srm-redirect.php
Co-authored-by: Copilot <[email protected]>
1 parent 481a28c commit 6302fe8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/classes/class-srm-redirect.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ public function maybe_redirect() {
294294
* @param {string} $request_path Request path. Default `$_SERVER['REQUEST_URI']`.
295295
* @returns {string} Request path.
296296
*/
297-
$requested_path = esc_url_raw( apply_filters( 'srm_requested_path', sanitize_text_field( wp_unslash( $_SERVER['REQUEST_URI'] ?? '' ) ) ?? '' ) );
297+
$requested_path = esc_url_raw( apply_filters( 'srm_requested_path', sanitize_text_field( wp_unslash( $_SERVER['REQUEST_URI'] ?? '' ) ) ) );
298298
$requested_path = untrailingslashit( stripslashes( $requested_path ) );
299299
$matched_redirect = $this->match_redirect( $requested_path );
300300

0 commit comments

Comments
 (0)