diff options
Diffstat (limited to 'plugins/jetpack/class.jetpack-jitm.php')
-rw-r--r-- | plugins/jetpack/class.jetpack-jitm.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/jetpack/class.jetpack-jitm.php b/plugins/jetpack/class.jetpack-jitm.php index 112c7ff0..8224cd0a 100644 --- a/plugins/jetpack/class.jetpack-jitm.php +++ b/plugins/jetpack/class.jetpack-jitm.php @@ -67,7 +67,6 @@ class Jetpack_JITM { */ function prepare_jitms( $screen ) { if ( ! in_array( $screen->id, array( - 'toplevel_page_jetpack', 'jetpack_page_stats', 'jetpack_page_akismet-key-config', 'admin_page_jetpack_modules' @@ -138,12 +137,13 @@ class Jetpack_JITM { function ajax_message() { $message_path = $this->get_message_path(); $query_string = _http_build_query( $_GET, '', ',' ); - + $current_screen = wp_unslash( $_SERVER['REQUEST_URI'] ); ?> <div class="jetpack-jitm-message" data-nonce="<?php echo wp_create_nonce( 'wp_rest' ) ?>" data-message-path="<?php echo esc_attr( $message_path ) ?>" data-query="<?php echo urlencode_deep( $query_string ) ?>" + data-redirect="<?php echo urlencode_deep( $current_screen ) ?>" ></div> <?php } |