From c14e8fcbf548a0f8a819cb9de595818d4e619d22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E8=90=BD?= Date: Mon, 19 Oct 2020 20:59:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=80=E4=BA=9B=E7=BB=86?= =?UTF-8?q?=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gdk.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gdk.php b/gdk.php index 5f83178..f1b5472 100644 --- a/gdk.php +++ b/gdk.php @@ -6,7 +6,7 @@ Description: 为WordPress主题开发提供底层支持 Version: 0.0.3 Author: 云落 Author URI: https://gitcafe.net/ -Compatible:5.3.2 +Compatible:5.5.1 */ //万能的开头 @@ -16,14 +16,14 @@ if (!defined('ABSPATH')) {exit;} function deactivate_myself() { deactivate_plugins(plugin_basename(__FILE__)); - wp_die('启动失败,GDK插件不兼容Git主题且需要运行在 PHP 7.2 版本及更高的环境下。'); + wp_die('启动失败,GDK插件不兼容Git主题且需要运行在 PHP 7.3 版本及更高的环境下。'); } if (defined('GIT_URL')) { add_action('update_option_active_plugins', 'deactivate_myself'); } -if (!version_compare(PHP_VERSION, '7.2', '>=')) { +if (!version_compare(PHP_VERSION, '7.3', '>=')) { add_action('update_option_active_plugins', 'deactivate_myself'); } @@ -39,4 +39,3 @@ include 'class/class_load.php'; //加载各种类 include 'functions/func_load.php'; //加载函数 include 'assets/assets_load.php'; //加载静态资源 -