diff --git a/includes/settings/wp-tinymce-add-button.php b/includes/settings/wp-tinymce-add-button.php index edc1cb1a3a2822864181f32dfc0d0a3411132383..f8ed2fa6947321b6af75c3c99636407930829630 100644 --- a/includes/settings/wp-tinymce-add-button.php +++ b/includes/settings/wp-tinymce-add-button.php @@ -6,7 +6,7 @@ global $pagenow; if (is_admin() && ( $pagenow == 'post-new.php' || $pagenow == 'post.php' ) && wp_script_is('quicktags')) { ?> 'apppage', // optional 'class' => 'chosen', // optional - ), + ), + array( + 'id' => 'jumptype', + 'type' => 'select', + 'title' => '跳转方式', + 'after' => '跳转其他小程序时需选择', + 'options' => array( + 'redirect' => '切换跳转', + 'embedded' => '半屏跳转' + ), + 'default' => 'redirect', // optional + 'class' => 'chosen', + ), array( 'id' => 'appid', 'type' => 'text', @@ -156,7 +168,19 @@ function minapper_admin_menu() 'default' => 'apppage', // optional 'class' => 'chosen', // optional - ), + ), + array( + 'id' => 'jumptype', + 'type' => 'select', + 'title' => '跳转方式', + 'after' => '跳转其他小程序时需选择', + 'options' => array( + 'redirect' => '切换跳转', + 'embedded' => '半屏跳转' + ), + 'default' => 'redirect', // optional + 'class' => 'chosen', + ), array( 'id' => 'appid', 'type' => 'text', diff --git a/rest-api-to-miniprogram.php b/rest-api-to-miniprogram.php index 2dfdf9c0362c34434f587dc7a27b54dedc0e281e..bc1c3d6b0502b99cc8ffbff4860534cd90122618 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.5.0 +Version: 4.5.1 Author: jianbo Author URI: https://www.minapper.com License: GPL v3