3rd-party/woocommerce-services.php 1 location
|
@@ 86-90 (lines=5) @@
|
83 |
|
break; |
84 |
|
} |
85 |
|
|
86 |
|
if ( isset( $_GET['redirect'] ) ) { |
87 |
|
$redirect = home_url( esc_url_raw( wp_unslash( $_GET['redirect'] ) ) ); |
88 |
|
} else { |
89 |
|
$redirect = admin_url(); |
90 |
|
} |
91 |
|
|
92 |
|
if ( $result ) { |
93 |
|
$this->jetpack->stat( 'jitm', 'wooservices-activated-' . JETPACK__VERSION ); |
extensions/blocks/eventbrite/eventbrite.php 1 location
|
@@ 37-41 (lines=5) @@
|
34 |
|
* @return string Current URL. |
35 |
|
*/ |
36 |
|
function get_current_url() { |
37 |
|
if ( isset( $_SERVER['HTTP_HOST'] ) ) { |
38 |
|
$host = wp_unslash( $_SERVER['HTTP_HOST'] ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized |
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 { |