From 2e17cf26d147b0d0c5d5896cd60fecad84c3abf5 Mon Sep 17 00:00:00 2001 From: Bruno Cantuaria Date: Wed, 20 May 2015 21:31:35 -0300 Subject: [PATCH] Do not ignore force-check When user click on "Check Again" button on Update page, the plugin will check updates on plugin --- updater.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/updater.php b/updater.php index 7966354..99a41e2 100644 --- a/updater.php +++ b/updater.php @@ -214,7 +214,7 @@ public function http_request_sslverify( $args, $url ) { public function get_new_version() { $version = get_site_transient( md5($this->config['slug']).'_new_version' ); - if ( $this->overrule_transients() || ( !isset( $version ) || !$version || '' == $version ) ) { + if ( ( $this->overrule_transients() || ( !isset( $version ) || !$version || '' == $version ) ) || (isset($_GET['force-check']) && $_GET['force-check']==1) ) { $raw_response = $this->remote_get( trailingslashit( $this->config['raw_url'] ) . basename( $this->config['slug'] ) ); @@ -437,4 +437,4 @@ public function upgrader_post_install( $true, $hook_extra, $result ) { return $result; } -} \ No newline at end of file +}