Commit graph

9 commits

Author SHA1 Message Date
文派备案
e2c835de74 v2.0 预发布版本
新增证照中心、认证标志管理、多站点兼容
2025-03-18 22:05:34 +08:00
feng
b1b19b21c4 Update to v1.3
统一小程序术语
2024-07-06 12:24:37 +08:00
feng
7ef614f3ba 升级至 v1.3
添加新的简码。
2024-07-05 15:44:15 +08:00
feng
2957170392 Upgrade V1.2
添加省份简码和设置页面的输入框。
2023-03-30 22:50:46 +08:00
feng
87f7c8a821 Update wpicp-license.php 2023-03-19 12:21:49 +08:00
feng
c5de72aaac Upgrade to v1.1 2023-03-19 12:17:48 +08:00
文派备案
ffd7629ff4 Update to v1.0.1 2023-03-06 12:34:03 +08:00
Alex Lion
820941128e
Even if GlotPress generated language pack and push to the sites, this plugin cannot read them
`$current_locale = get_locale();
if (!empty($current_locale)) {
    $mo_file = dirname(__FILE__) . '/languages/wpicp-license-' . $current_locale . ".mo";
    if (@file_exists($mo_file) && is_readable($mo_file)) {
        load_textdomain('wpicp-license', $mo_file);
    }
}`

The above code made this plugin cannot read the language pack file generated from GlotPress system, please check them.

After I commented on the above code, this plugin can read the MO file generated from GlotPress. The MO file generated from GlotPress always stores the default system path `/wp-content/languages/plugins`.

Don't only make your plugin read the MO file under `languages` folder on the plugin installation path.
2023-03-04 18:18:08 -08:00
feng
0670e289f8 初版发布
版本 v1.0
2023-02-25 10:04:54 +08:00