Completed
Pull Request — develop (#780)
by
unknown
01:40
created
class-tgm-plugin-activation.php 1 patch
Braces   +6 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1671,12 +1671,11 @@  discard block
 block discarded – undo
1671 1671
 
1672 1672
 			if ( false !== $api && isset( $api->download_link ) ) {
1673 1673
 
1674
-				if($this->strict_versions === true){
1674
+				if($this->strict_versions === true) {
1675 1675
 					$version = isset($this->plugins[$slug]['version']) ? $this->plugins[$slug]['version'] : '';
1676 1676
 					$versions = $api->versions;
1677 1677
 					$source = isset($versions[$version]) ? $versions[$version] : $api->download_link;
1678
-				}
1679
-				else{
1678
+				} else {
1680 1679
 					$source = $api->download_link;
1681 1680
 				}
1682 1681
 
@@ -1792,10 +1791,12 @@  discard block
 block discarded – undo
1792 1791
 			if ( 'update-core' === $screen->base ) {
1793 1792
 				// Core update screen.
1794 1793
 				return true;
1795
-			} elseif ( 'plugins' === $screen->base && ! empty( $_POST['action'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing
1794
+			} elseif ( 'plugins' === $screen->base && ! empty( $_POST['action'] ) ) {
1795
+// phpcs:ignore WordPress.Security.NonceVerification.Missing
1796 1796
 				// Plugins bulk update screen.
1797 1797
 				return true;
1798
-			} elseif ( 'update' === $screen->base && ! empty( $_POST['action'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing
1798
+			} elseif ( 'update' === $screen->base && ! empty( $_POST['action'] ) ) {
1799
+// phpcs:ignore WordPress.Security.NonceVerification.Missing
1799 1800
 				// Individual updates (ajax call).
1800 1801
 				return true;
1801 1802
 			}
Please login to merge, or discard this patch.