Skip to content

Commit

Permalink
remove redundant query variables
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAnderson684 committed Jul 22, 2017
1 parent f6c411e commit a776eba
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions class-udm-updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
if (!class_exists('Updraft_Manager_Updater_1_4')):
class Updraft_Manager_Updater_1_4 {

public $version = '1.4.1';
public $version = '1.4.2';

public $relative_plugin_file;
public $slug;
Expand Down Expand Up @@ -65,7 +65,6 @@ public function __construct($mothership, $muid = 1, $relative_plugin_file, $inte
$options = $this->get_option($this->option_name);
$email = isset($options['email']) ? $options['email'] : '';
if ($email) {

// Load the file even if the Puc_v4_Factory class is already around, as this may get us a later version / avoid a really old + incompatible one
if (file_exists($puc_dir.'/plugin-update-checker.php')) include_once($puc_dir.'/plugin-update-checker.php');

Expand Down Expand Up @@ -645,6 +644,10 @@ public function updater_queryargs_plugin($args) {

$args['si2'] = urlencode(base64_encode(json_encode($sinfo)));

// These are added by versions 4.0+ of the updates checker. We remove them because of the redundancy.
unset($args['php']);
unset($args['locale']);

return $args;
}

Expand Down

0 comments on commit a776eba

Please sign in to comment.