From b255b869474e2d22c084ad1752b9032b800cabad Mon Sep 17 00:00:00 2001
From: devhaozi 提示:插件会定期检查节点可用性,并在节点不可用时自动切换至可用节点,以保证您的网站正常访问。如您发现设置项被自动切换,可在此页面重新设置。 帮助:您可以随时在此处调整个性化设置以便适应不同的业务场景,萌新请保持默认即可。此项目的发展离不开您的支持和建议,查看联系方式。 提示:插件会定期检查节点可用性,并在节点不可用时自动切换至可用节点,以保证您的网站正常访问。如您发现设置项被自动切换,可在此页面重新设置。 帮助:您可以随时在此处调整个性化设置以便适应不同的业务场景,萌新请保持默认即可。此项目的发展离不开您的支持和建议,查看联系方式。 提示:插件会定期检查节点可用性,并在节点不可用时自动切换至可用节点,以保证您的网站正常访问。如您发现设置项被自动切换,可在此页面重新设置。 帮助:您可以随时在此处调整个性化设置以便适应不同的业务场景,萌新请保持默认即可。此项目的发展离不开您的支持和建议,查看联系方式。 提示:插件会定期检查节点可用性,并在节点不可用时自动切换至可用节点,以保证您的网站正常访问。如您发现设置项被自动切换,可在此页面重新设置。 提示:插件会定期检查节点可用性,并在节点不可用时自动切换至可用节点,以保证您的网站正常访问。如您发现设置项被自动切换,可重新设置或关闭自动监控功能。 帮助:您可以随时在此处调整个性化设置以便适应不同的业务场景,萌新请保持默认即可。此项目的发展离不开您的支持和建议,查看联系方式。 提示:插件会定期检查节点可用性,并在节点不可用时自动切换至可用节点,以保证您的网站正常访问。如您发现设置项被自动切换,可重新设置或关闭自动监控功能。 帮助:您可以随时在此处调整个性化设置以便适应不同的业务场景,萌新请保持默认即可。此项目的发展离不开您的支持和建议,查看联系方式。WP-China-Yes
';
- echo '将您的 WordPress 接入本土生态体系,这将为您提供一个更贴近中国人使用习惯的 WordPress。
100% 开源代码,一起参与文派(WordPress)软件国产化进程,打造属于您自己的开源自助建站程序。
';
+ echo '文派叶子🍃(WP-China-Yes)
将您的 WordPress 接入本土生态体系,这将为您提供一个更贴近中国人使用习惯的 WordPress。
100% 开源代码,一起参与文派(WordPress)软件国产化进程,打造属于您自己的开源自助建站程序。
文派叶子🍃(WP-China-Yes)
将您的 WordPress 接入本土生态体系,这将为您提供一个更贴近中国人使用习惯的 WordPress。
100% 开源代码,一起参与文派(WordPress)软件国产化进程,打造属于您自己的开源自助建站程序。
文派叶子🍃(WP-China-Yes)
+ 将您的 WordPress 接入本土生态体系,这将为您提供一个更贴近中国人使用习惯的 WordPress。
+ 100% 开源代码,一起参与文派(WordPress)软件国产化进程,打造属于您自己的开源自助建站程序。
+项目简介
- 赞助商
-
-
-
-
-
-
-
-
-
-
项目简介
+ 赞助商
+
+
+
+
+
+
+
+
+
+
建站套件
+
+
+ 建站套件
-
-
- 文派叶子🍃(WP-China-Yes)
+ 文派叶子🍃(WP-China-Yes)
将您的 WordPress 接入本土生态体系,这将为您提供一个更贴近中国人使用习惯的 WordPress。
100% 开源代码,一起参与文派(WordPress)软件国产化进程,打造属于您自己的开源自助建站程序。
diff --git a/Service/Super.php b/Service/Super.php
index d3b0ee4..d103155 100644
--- a/Service/Super.php
+++ b/Service/Super.php
@@ -225,11 +225,11 @@ class Super {
}
if ( $this->settings['store'] == 'wenpai' ) {
- $url = str_replace( 'api.wordpress.org', 'api.wenpai.org', $url );
+ $url = str_replace( 'api.wordpress.org', 'api.wenpai.net', $url );
} else {
- $url = str_replace( 'api.wordpress.org', 'wpa.cdn.haozi.net', $url );
+ $url = str_replace( 'api.wordpress.org', 'api.wpmirror.com', $url );
}
- $url = str_replace( 'downloads.wordpress.org', 'wpd.cdn.haozi.net', $url );
+ $url = str_replace( 'downloads.wordpress.org', 'downloads.wenpai.net', $url );
$curl_version = '1.0.0';
if ( function_exists( 'curl_version' ) ) {
diff --git a/Service/Update.php b/Service/Update.php
index daccdd7..e102b82 100644
--- a/Service/Update.php
+++ b/Service/Update.php
@@ -15,7 +15,7 @@ class Update {
public function __construct() {
PucFactory::buildUpdateChecker(
- 'https://api.wenpai.org/china-yes/version-check',
+ 'https://api.wenpai.net/china-yes/version-check',
CHINA_YES_PLUGIN_FILE,
'wp-china-yes'
);
From 7d38bc7adc8abfb7592856e9b5bdd66c8698ed9d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=96=87=E6=B4=BE=E5=A4=87=E6=A1=88?=
<130886204+modiqi@users.noreply.github.com>
Date: Sat, 9 Mar 2024 15:57:44 +0800
Subject: [PATCH 05/47] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20UI=20=E6=A0=B7?=
=?UTF-8?q?=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
调整字体大小
---
Service/Setting.php | 2 +-
assets/css/setting.css | 8 +++++++-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/Service/Setting.php b/Service/Setting.php
index 588d1bb..aed8de9 100644
--- a/Service/Setting.php
+++ b/Service/Setting.php
@@ -68,7 +68,7 @@ class Setting {
[
'name' => 'cravatar',
'label' => __( '初认头像', 'wp-china-yes' ),
- 'desc' => __( '初认头像(Cravatar)Gravatar 在中国的完美替代方案,您可以在 https://cravatar.com 上传头像,更多选项请安装 WPAavatar 插件。(任何开发者均可在自己的产品中集成该服务,不局限于 WordPress)',
+ 'desc' => __( '初认头像(Cravatar)Gravatar 在中国的完美替代方案,您可以在 Cravatar.com 上传头像,更多选项请安装 WPAavatar 插件。(任何开发者均可在自己的产品中集成该服务,不局限于 WordPress)',
'wp-china-yes' ),
'type' => 'radio',
'default' => 'cn',
diff --git a/assets/css/setting.css b/assets/css/setting.css
index de2b0e5..5a1bfdb 100644
--- a/assets/css/setting.css
+++ b/assets/css/setting.css
@@ -5,7 +5,9 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
#wpcontent, #wpfooter {
background-color: #ffffff;
}
-
+#wpbody-content {
+ padding-bottom: 10%;
+}
.notice {
background-color: #f5f5f5;
}
@@ -72,6 +74,10 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
margin: 0 auto;
line-height: 1.5;
}
+.settings-header .update-messages h2, .update-php h2, h4 {
+ font-size: 15px;
+ font-weight: 400;
+}
.settings-title-section {
padding: 1% 0;
From 2c86b5c546acb16a1398dec3b3b24211af118f42 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=80=97=E5=AD=90?=
Date: Sat, 9 Mar 2024 18:23:41 +0800
Subject: [PATCH 06/47] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E6=B5=8B?=
=?UTF-8?q?=E8=AF=95=20URL=20=E5=8F=8A=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F?=
=?UTF-8?q?=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Service/Monitor.php | 4 ++--
assets/css/setting.css | 5 ++++-
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/Service/Monitor.php b/Service/Monitor.php
index d80b9f3..c244f9b 100644
--- a/Service/Monitor.php
+++ b/Service/Monitor.php
@@ -127,7 +127,7 @@ class Monitor {
}
// Google 前端公共库
if ( ! empty( $this->settings['admincdn']['googleajax'] ) ) {
- $response = wp_remote_get( 'https://googleajax.admincdn.com/ajax/libs/jquery/3.5.1/jquery.min.js' );
+ $response = wp_remote_get( 'https://googleajax.admincdn.com/ajax/libs/jquery/3.7.1/jquery.slim.min.js' );
if ( is_wp_error( $response ) || wp_remote_retrieve_response_code( $response ) != 200 ) {
unset( $this->settings['admincdn']['googleajax'] );
$this->update_settings();
@@ -135,7 +135,7 @@ class Monitor {
}
// CDNJS 前端公共库
if ( ! empty( $this->settings['admincdn']['cdnjs'] ) ) {
- $response = wp_remote_get( 'https://cdnjs.admincdn.com/jquery/3.5.1/jquery.min.js' );
+ $response = wp_remote_get( 'https://cdnjs.admincdn.com/jquery/3.7.1/jquery.slim.min.js' );
if ( is_wp_error( $response ) || wp_remote_retrieve_response_code( $response ) != 200 ) {
unset( $this->settings['admincdn']['cdnjs'] );
$this->update_settings();
diff --git a/assets/css/setting.css b/assets/css/setting.css
index 5a1bfdb..99975fb 100644
--- a/assets/css/setting.css
+++ b/assets/css/setting.css
@@ -5,9 +5,11 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
#wpcontent, #wpfooter {
background-color: #ffffff;
}
+
#wpbody-content {
padding-bottom: 10%;
}
+
.notice {
background-color: #f5f5f5;
}
@@ -74,6 +76,7 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
margin: 0 auto;
line-height: 1.5;
}
+
.settings-header .update-messages h2, .update-php h2, h4 {
font-size: 15px;
font-weight: 400;
@@ -123,4 +126,4 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
.right-column {
width: 30%;
}
-}
\ No newline at end of file
+}
From c947537af6b687b090456227539a080fbaa26ed8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=80=97=E5=AD=90?=
Date: Sat, 9 Mar 2024 19:36:59 +0800
Subject: [PATCH 07/47] =?UTF-8?q?feat:=20=E5=8F=91=E5=B8=83=20v3.6.2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
wp-china-yes.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/wp-china-yes.php b/wp-china-yes.php
index 54094cc..fe0b3e5 100644
--- a/wp-china-yes.php
+++ b/wp-china-yes.php
@@ -4,7 +4,7 @@
* Description: 文派叶子 🍃(WP-China-Yes)是中国 WordPress 生态基础设施软件,犹如落叶新芽,生生不息。
* Author: 文派开源
* Author URI: https://wp-china-yes.com
- * Version: 3.6.1
+ * Version: 3.6.2
* License: GPLv3 or later
* Text Domain: wp-china-yes
* Domain Path: /languages
@@ -19,7 +19,7 @@ namespace WenPai\ChinaYes;
defined( 'ABSPATH' ) || exit;
-define( 'CHINA_YES_VERSION', '3.6.1' );
+define( 'CHINA_YES_VERSION', '3.6.2' );
define( 'CHINA_YES_PLUGIN_FILE', __FILE__ );
define( 'CHINA_YES_PLUGIN_URL', plugin_dir_url( CHINA_YES_PLUGIN_FILE ) );
define( 'CHINA_YES_PLUGIN_PATH', plugin_dir_path( CHINA_YES_PLUGIN_FILE ) );
From ce026464632dc0565dc938b5404daf873b398815 Mon Sep 17 00:00:00 2001
From: devhaozi
+
+
+
+
+
+
+
+
+
+
+HTML,
+ ],
+ [
+ 'type' => 'subheading',
+ 'content' => '开发者 & 贡献者',
+ ],
+ [
+ 'type' => 'content',
+ 'content' =>
+ <<孙锡源 |
+耗子 |
+Yulinn |
+赵丰 |
+jialong Dong |
+TigerKK |
+xianyu125 |
+ElliotHughes |
+诗语 |
+莫蒂奇 |
+薇晓朵
+HTML,
+ ]
+ ],
+ ] );
}
/**
@@ -137,15 +398,6 @@ class Setting {
* 挂载设置页面
*/
public function admin_menu() {
- // 后台设置
- add_submenu_page(
- is_multisite() ? 'settings.php' : 'options-general.php',
- esc_html__( 'WP-China-Yes', 'wp-china-yes' ),
- esc_html__( 'WP-China-Yes', 'wp-china-yes' ),
- is_multisite() ? 'manage_network_options' : 'manage_options',
- 'wp-china-yes',
- [ $this, 'setting_page' ]
- );
// 插件页设置
add_filter( 'plugin_action_links', function ( $links, $file ) {
if ( 'wp-china-yes/wp-china-yes.php' !== $file ) {
@@ -159,76 +411,4 @@ class Setting {
return $links;
}, 10, 2 );
}
-
- /**
- * 设置页面模版
- */
- public function setting_page() {
- echo <<
-
文派叶子🍃(WP-China-Yes)
- 将您的 WordPress 接入本土生态体系,这将为您提供一个更贴近中国人使用习惯的 WordPress。
- 100% 开源代码,一起参与文派(WordPress)软件国产化进程,打造属于您自己的开源自助建站程序。
-
-项目简介
- 赞助商
-
-
-
-
-
-
-
-
-
-
建站套件
-
-
-
' . sprintf( __( 'WP-China-Yes 插件需要 PHP 5.6.0 或更高版本,当前版本为 %s,插件已自动禁用。', + $notices[] = '
' . sprintf( __( 'WP-China-Yes 插件需要 PHP 7.0.0 或更高版本,当前版本为 %s,插件已自动禁用。', 'wp-china-yes' ), PHP_VERSION ) . '
' . __( '检测到不兼容的插件 Kill 429,已自动禁用!', 'wp-china-yes' ) . '
5n
zv^`og$WLg1xT430^$rKri<*HipeXlN!mX}~$Q5Y0 ywe~qPF#y
z&+j-cP;cPOqZz>tA6IFXggw=?q+S`${u;kfrh8R1wH}W3 Ftt!29
zJO@0|9`S@agim}6j)1!B3N{3F9N*?mFmR!yiXtN#A-2c<_;q{C*Ua3zLQx9^fB8$a
z%1|;s9LDu6zZCCN_vX8mzS-khllPAZjyyXbE3+C&Y=ZeJ!iBz6!H~H+xq12 %s =446-?1#-HiznqaiG4Y5
z?;H$Q)2wR%zKSgc+juKq(;}|dwF2+qD0BX(rd~PIX;a!d4%8Qi@k&VlOd7^g?*4pN
z^6={ ^Ed(y<2t}eKTT|}M>Yl7H9Ltz^xZXT1(gbW4j6I|
zaw&*p1@VNk<>yG~W9I9>{W43&_t4GJ9sZ`mCtCr??w8z|<=ZYu$B}7G5UlYoZPIM;
z6bRL^)Vv(tr5L7v1TR57N1%bg7dy1V%;IA+`_9mlnVM4%{fY`b+=3SG2A=Qma$vBy
zRf8t*ZO14_x;M0OM>wVmJ}k?%@9DK2l7lohu=@JJzyAzEUhSWez|^gtr4J
zYSwO?T^pNr4HB}bXTC}W92kXFOv^lt7!jaoOVp;pEh`wexGv%E)%vbYcR$n3-D_i?
zeU`3^6Td&7b0>0sy+GViLkO!+RigoR28Y)@@EpTms(t6rS>!51skdn|j1_`Hbu0@EVJ*k%VRh*mchsQ0i4bPop(y9^Ypk
zy2G0WOvp*P!&q?VEop$7(I&?^;o!a*_2>_~lD_iId67>&KNup9&K!0cIV>#^jth0w
z{xeJ}vsY?oeLd=rB1&u$?&QT3a#oVZ_GZbN(0Y3hIgIF3L#Ig}u_mDxDk{wJxop`%
zI1
-
-
-
-
-
-
-
-
+
+
From 33e05459654bb2ae731d1b2f8a086f24ec503255 Mon Sep 17 00:00:00 2001
From: feng
+
From 9ea04f6ac47c7692871035abd8929d22dcb01cb7 Mon Sep 17 00:00:00 2001
From: feng
+
## 简介
-文派叶子 🍃(WP-China-Yes)是一款不可多得的 WordPress 系统底层优化和生态基础设施软件。项目起源于 2019 年,专为解决困扰了中国互联网数十年的特色问题而存在。此为文派开源(WenPai.org)的一部分。
+文派叶子 🍃(WPCY)是一款不可多得的 WordPress 系统底层优化和生态基础设施软件。项目起源于 2019 年,专为解决困扰了中国互联网数十年的特色问题而存在。此为文派开源(WenPai.org)的一部分。
## 功能
@@ -16,6 +19,14 @@
- [x] 优化 谷歌字体 加载速度
- [x] 优化 谷歌前端库 加载速度
- [x] 优化 CDNJS 加载速度
+- [x] 优化 Jsdelivr 加载速度
+- [x] 集成 WPMirror 镜像更新源
+- [x] 集成 Windfonts 中文网页 Webfonts [文风字体](https://windfonts.com)
+- [x] 集成 adminCDN 前端公共库[文风字体](https://windfonts.com)
+- [x] 启用 飞行模式 可屏蔽外部 API 请求
+- [x] 启用 节点监控 可自动切换加速节点
+- [x] 启用 品牌白标 可自定义 OEM 插件品牌
+
## 安装
@@ -33,5 +44,4 @@
## 赞助商
-
-
+
From 7e08f3392336d5cd01c26a3af15627bc040d6657 Mon Sep 17 00:00:00 2001
From: feng
## 简介
-
文派叶子 🍃(WPCY)是一款不可多得的 WordPress 系统底层优化和生态基础设施软件。项目起源于 2019 年,专为解决困扰了中国互联网数十年的特色问题而存在。此为文派开源(WenPai.org)的一部分。
## 功能
@@ -22,7 +23,7 @@
- [x] 优化 Jsdelivr 加载速度
- [x] 集成 WPMirror 镜像更新源
- [x] 集成 Windfonts 中文网页 Webfonts [文风字体](https://windfonts.com)
-- [x] 集成 adminCDN 前端公共库[文风字体](https://windfonts.com)
+- [x] 集成 adminCDN 前端公共库[萌芽加速](https://admincdn.com)
- [x] 启用 飞行模式 可屏蔽外部 API 请求
- [x] 启用 节点监控 可自动切换加速节点
- [x] 启用 品牌白标 可自定义 OEM 插件品牌
From 8d3a71414d1fc4a8c5983a8fa29ab66539a4a5c2 Mon Sep 17 00:00:00 2001
From: feng
%s
x>{vM{-B`2k2gPW0mGPg
zjYsC6CiJ{JCo^IlatgGJfi?lfS5W(Zk7$`C|Kwgx^yJchVV3&$h%|Bj8u4W3dW3Xq
zry6TU{R?gg5)l1u32)pfHhT`1`OzjI`ZKNcm$+WfOnH+MGj|@$HH=1fAV&;PJ>h1A
z^@4BdaPj4336+KR&FmS1V^5T0g!SKqP(U`{jKn
d{R`f8z7VXu(ouW>&J-cj#I#J~oFCkuMxj
z^%FRkt}@g`>Cuaqimv?YZxs^PP4Q3CKkQ5`%Kil~xZ@Dt?n&it4fQwghc&yFns}9G
zV##>B1+uO8ShS~kMkQf>d21XinUDChZNLx9lD|9~d!6mxaq^gD!$6=pZcX9N=*(23
zANvii?Ji2lJ?65d^#j|o`J>Mt`8$OU;`kgFr@cF~$!O(u##q!;G0j!WLP0d#WfJsj
z6Dv6|R^8^{8(zKO+g}u)9FOGak0iOo*tdy=mpHj%6DhCV(k;d6Bt=iJnZf$LaAJ4V
zfWWAHHEBfyigXUd3Q>#yUq|LblCbW;?3B#Iz2~Z}#N*3y-~Ez-iz->6&m=hs0bwuV
zjtDE^{WZ2&{r%iLIPfb3(cIa{ebYnshd(rM*aO1r5FMzsxPQEjIS5I>v_wZL^9|uDpda?JsA8f?@
zDG7fRe4L|<->MW8|Jt=f@%+Q4z|YEK{f_<}(kKJ}kAB@O$F}dOmCv_wB7eSS7y4gZ
z71B|C_9MzW5Xlb2TndF%X03SeQClXM#qzY+C~}#V8synD>8BQ--7xWxP#~^spSZ)*
zlS5DdFX!+638}M;D=!0IoO0ZGss0yG_2Q6@Tl-HMCMotM