We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 481a28c commit 6302fe8Copy full SHA for 6302fe8
inc/classes/class-srm-redirect.php
@@ -294,7 +294,7 @@ public function maybe_redirect() {
294
* @param {string} $request_path Request path. Default `$_SERVER['REQUEST_URI']`.
295
* @returns {string} Request path.
296
*/
297
- $requested_path = esc_url_raw( apply_filters( 'srm_requested_path', sanitize_text_field( wp_unslash( $_SERVER['REQUEST_URI'] ?? '' ) ) ?? '' ) );
+ $requested_path = esc_url_raw( apply_filters( 'srm_requested_path', sanitize_text_field( wp_unslash( $_SERVER['REQUEST_URI'] ?? '' ) ) ) );
298
$requested_path = untrailingslashit( stripslashes( $requested_path ) );
299
$matched_redirect = $this->match_redirect( $requested_path );
300
0 commit comments