mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-03 11:11:30 +08:00
修复:不替换RC版WordPress的静态文件
This commit is contained in:
parent
86afa929b1
commit
a0cc8dd261
1 changed files with 6 additions and 1 deletions
|
@ -85,7 +85,12 @@ if (!class_exists('WP_CHINA_YES')) {
|
|||
/**
|
||||
* 将WordPress核心所依赖的静态文件访问链接替换为公共资源节点
|
||||
*/
|
||||
if (get_option('super_admin') != 2 && !stristr($GLOBALS['wp_version'], 'alpha') && !stristr($GLOBALS['wp_version'], 'beta')) {
|
||||
if (
|
||||
get_option('super_admin') != 2 &&
|
||||
!stristr($GLOBALS['wp_version'], 'alpha') &&
|
||||
!stristr($GLOBALS['wp_version'], 'beta') &&
|
||||
!stristr($GLOBALS['wp_version'], 'RC')
|
||||
) {
|
||||
$this->page_str_replace('preg_replace', [
|
||||
'~' . home_url('/') . '(wp-admin|wp-includes)/(css|js)/~',
|
||||
sprintf('https://a2.wp-china-yes.net/WordPress@%s/$1/$2/', $GLOBALS['wp_version'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue