diff --git a/includes/settings/wp-wechat-config.php b/includes/settings/wp-wechat-config.php index 19734256f67e2fe6d5067a1c6c68d81c23524f4a..b577b8431408abf79f40a65ff3dd5480f8b9173a 100644 --- a/includes/settings/wp-wechat-config.php +++ b/includes/settings/wp-wechat-config.php @@ -27,8 +27,7 @@ function get_jquery_source() { function register_weixinappsettings() { // 注册设置 register_setting( 'weixinapp-group', 'wf_appid' ); - register_setting( 'weixinapp-group', 'wf_secret' ); - // register_setting( 'weixinapp-group', 'wf_swipe' ); + register_setting( 'weixinapp-group', 'wf_secret' ); register_setting( 'weixinapp-group', 'wf_mchid' ); register_setting( 'weixinapp-group', 'wf_paykey' ); @@ -93,8 +92,7 @@ function weixinapp_settings_page() { if (!empty($_REQUEST['settings-updated'])) { if(function_exists('MRAC')) - { - + { $cachedata= MRAC()->cacheManager->clear_cache(); } echo '

设置已保存

'; @@ -103,9 +101,6 @@ if (!empty($_REQUEST['settings-updated'])) 'headers' => array('Content-Type' => 'application/json'), ); $response = wp_remote_post('https://blog.minapper.com/wp-json/uniapp-builder/v1/siteinfo', $args); - - - } if (version_compare(PHP_VERSION, '5.6.0', '<=') ) diff --git a/rest-api-to-miniprogram.php b/rest-api-to-miniprogram.php index dfd077b6a749af6d049852d7a29e0eb5fb7284f4..610ba50e3bab33ac148ec0b50c9639d1e1648909 100644 --- a/rest-api-to-miniprogram.php +++ b/rest-api-to-miniprogram.php @@ -3,7 +3,7 @@ Plugin Name: REST API TO MiniProgram 微慕小程序 Plugin URI: https://www.minapper.com Description: 为微慕小程序提供定制化WordPress REST API json 输出 -Version: 4.6.6.1 +Version: 4.6.7 Author: jianbo Author URI: https://www.minapper.com License: GPL v3