From 3e3d8c4fbab5dc30268e968676c8bac318c1c09c Mon Sep 17 00:00:00 2001 From: Leonardo Losoviz Date: Fri, 18 Dec 2020 00:13:44 +0800 Subject: [PATCH] Fixed check for stored plugin version --- src/Plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugin.php b/src/Plugin.php index 5acebbf6e..c6dd809a1 100755 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -138,7 +138,7 @@ function (): void { // and the current plugin's version are different // It could also be false from the first time we install the plugin $storedVersion = \get_option(self::OPTION_PLUGIN_VERSION, \GRAPHQL_API_VERSION); - if ($storedVersion === false || $storedVersion == \GRAPHQL_API_VERSION) { + if (!$storedVersion || $storedVersion == \GRAPHQL_API_VERSION) { return; } // Update to the current version