Update to v1.3

统一小程序术语
This commit is contained in:
feng 2024-07-06 12:24:37 +08:00
parent 7ef614f3ba
commit b1b19b21c4
5 changed files with 30 additions and 25 deletions

View file

@ -138,11 +138,11 @@ function wpicp_app_shortcode() {
}
}
// Add wpicp_minipapp shortcode
add_shortcode('wpicp_minipapp', 'wpicp_minipapp_shortcode');
function wpicp_minipapp_shortcode() {
$wpicp_minipapp = get_option('wpicp_minipapp');
if ($wpicp_minipapp) {
return esc_html($wpicp_minipapp);
// Add wpicp_miniapp shortcode
add_shortcode('wpicp_miniapp', 'wpicp_miniapp_shortcode');
function wpicp_miniapp_shortcode() {
$wpicp_miniapp = get_option('wpicp_miniapp');
if ($wpicp_miniapp) {
return esc_html($wpicp_miniapp);
}
}

Binary file not shown.

View file

@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WPICP License\n"
"POT-Creation-Date: 2024-07-05 15:33+0800\n"
"PO-Revision-Date: 2024-07-05 15:36+0800\n"
"PO-Revision-Date: 2024-07-06 12:23+0800\n"
"Last-Translator: 薇晓朵 <support@weixiaoduo.com>\n"
"Language-Team: 薇晓朵 <support@weixiaoduo.com>\n"
"Language: zh_CN\n"
@ -292,8 +292,8 @@ msgid "Use the shortcode <code>[wpicp_app]</code>"
msgstr "使用简码 <code>[wpicp_app]</code>"
#: wpicp-license.php:285
msgid "Use the shortcode <code>[wpicp_minipapp]</code>"
msgstr "使用简码 <code>[wpicp_minipapp]</code>"
msgid "Use the shortcode <code>[wpicp_miniapp]</code>"
msgstr "使用简码 <code>[wpicp_miniapp]</code>"
#: wpicp-license.php:294
msgid "ICP License Settings"

View file

@ -4,7 +4,7 @@ Tags: ICP, ICP License, ICP Beian,备案,备案号
Requires at least: 5.4
Tested up to: 6.6
Requires PHP: 5.6
Stable tag: 1.3
Stable tag: 1.3.1
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@ -68,6 +68,11 @@ Starting with WP ICP License consists of just two steps: installing and setting
== Changelog ==
### 1.3.1 ###
* Replace [wpicp_minipapp] to [wpicp_miniapp].
### 1.3 ###
* Add Chinese company name and EDI/APP/MiniAPP ICP license short codes.

View file

@ -7,7 +7,7 @@
* Author URI: https://wpicp.com/
* Text Domain: wpicp-license
* Domain Path: /languages
* Version: 1.3
* Version: 1.3.1
* Network: True
* License: GPLv2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
@ -127,9 +127,9 @@
);
add_settings_field(
'wpicp_minipapp',
'wpicp_miniapp',
__('MiniAPP License Number', 'wpicp-license'),
'wpicp_minipapp_field_callback',
'wpicp_miniapp_field_callback',
'wpicp_license_settings',
'wpicp_license_section'
);
@ -142,7 +142,7 @@
register_setting( 'wpicp_license_settings', 'wpicp_phone' );
register_setting( 'wpicp_license_settings', 'wpicp_edi');
register_setting( 'wpicp_license_settings', 'wpicp_app');
register_setting( 'wpicp_license_settings', 'wpicp_minipapp');
register_setting( 'wpicp_license_settings', 'wpicp_miniapp');
}
@ -279,10 +279,10 @@ function wpicp_app_field_callback() {
echo '<p class="description" style="font-size:13px;">' . __( 'Use the shortcode <code>[wpicp_app]</code>', 'wpicp-license' ) . '</p>';
}
function wpicp_minipapp_field_callback() {
$minipapp = get_option('wpicp_minipapp');
echo '<input type="text" id="wpicp_minipapp" name="wpicp_minipapp" value="' . esc_attr($minipapp) . '" />';
echo '<p class="description" style="font-size:13px;">' . __( 'Use the shortcode <code>[wpicp_minipapp]</code>', 'wpicp-license' ) . '</p>';
function wpicp_miniapp_field_callback() {
$minipapp = get_option('wpicp_miniapp');
echo '<input type="text" id="wpicp_miniapp" name="wpicp_miniapp" value="' . esc_attr($minipapp) . '" />';
echo '<p class="description" style="font-size:13px;">' . __( 'Use the shortcode <code>[wpicp_miniapp]</code>', 'wpicp-license' ) . '</p>';
}