modules/sitemaps/sitemaps.php 1 location
|
@@ 203-209 (lines=7) @@
|
200 |
|
); |
201 |
|
|
202 |
|
// The raw path(+query) of the requested URI. |
203 |
|
if ( isset( $_SERVER['REQUEST_URI'] ) ) { // WPCS: Input var okay. |
204 |
|
$raw_uri = sanitize_text_field( |
205 |
|
wp_unslash( $_SERVER['REQUEST_URI'] ) // WPCS: Input var okay. |
206 |
|
); |
207 |
|
} else { |
208 |
|
$raw_uri = ''; |
209 |
|
} |
210 |
|
|
211 |
|
$request = $this->finder->recognize_sitemap_uri( $raw_uri ); |
212 |
|
|
extensions/blocks/eventbrite/eventbrite.php 1 location
|
@@ 42-46 (lines=5) @@
|
39 |
|
} else { |
40 |
|
$host = wp_parse_url( home_url(), PHP_URL_HOST ); |
41 |
|
} |
42 |
|
if ( isset( $_SERVER['REQUEST_URI'] ) ) { |
43 |
|
$path = wp_unslash( $_SERVER['REQUEST_URI'] ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized |
44 |
|
} else { |
45 |
|
$path = '/'; |
46 |
|
} |
47 |
|
return esc_url_raw( ( is_ssl() ? 'https' : 'http' ) . '://' . $host . $path ); |
48 |
|
} |
49 |
|
|