From ffa6957df74ced82fc865159052fe9f422e31555 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Mon, 27 Apr 2015 10:48:26 +0200 Subject: [PATCH] Remove unused $_GET property code Closes #354 --- class-tgm-plugin-activation.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/class-tgm-plugin-activation.php b/class-tgm-plugin-activation.php index 55807b9b..f5c80c17 100644 --- a/class-tgm-plugin-activation.php +++ b/class-tgm-plugin-activation.php @@ -541,11 +541,7 @@ protected function do_plugin_install() { // Prep variables for Plugin_Installer_Skin class. $title = sprintf( $this->strings['installing'], $plugin['name'] ); $url = add_query_arg( array( 'action' => 'install-plugin', 'plugin' => urlencode( $plugin['slug'] ) ), 'update.php' ); - if ( isset( $_GET['from'] ) ) { - $url .= add_query_arg( 'from', urlencode( stripslashes( $_GET['from'] ) ), $url ); - } - - $url = esc_url_raw( $url ); + $url = esc_url_raw( $url ); $nonce = 'install-plugin_' . $plugin['slug'];