1
0
Fork 0
mirror of https://github.com/yunluo/gdk.git synced 2024-05-24 17:32:23 +02:00
This commit is contained in:
云落 2020-01-28 02:08:46 +08:00
parent 156430bc31
commit 1e1ef93bab

View file

@ -17,7 +17,7 @@ function deactivate_myself() {
deactivate_plugins( plugin_basename( __FILE__ ) );
wp_die('启动失败,积木插件需要运行在 PHP 7.2 版本及更高的环境下。');
}
if (!version_compare(PHP_VERSION, '7.2.26', '>=')) {
if (!version_compare(PHP_VERSION, '7.2', '>=')) {
add_action('update_option_active_plugins', 'deactivate_myself');
}