mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-03 11:11:30 +08:00
修复:不为 LitePress 替换后台资源
This commit is contained in:
parent
05e3987783
commit
dd5babdc31
1 changed files with 2 additions and 6 deletions
|
@ -89,7 +89,8 @@ if ( ! class_exists( 'WP_CHINA_YES' ) ) {
|
|||
get_option( 'super_admin' ) != 2 &&
|
||||
! stristr( $GLOBALS['wp_version'], 'alpha' ) &&
|
||||
! stristr( $GLOBALS['wp_version'], 'beta' ) &&
|
||||
! stristr( $GLOBALS['wp_version'], 'RC' )
|
||||
! stristr( $GLOBALS['wp_version'], 'RC' ) &&
|
||||
! isset( $GLOBALS['lp_version'] )
|
||||
) {
|
||||
$this->page_str_replace( 'preg_replace', [
|
||||
'~' . home_url( '/' ) . '(wp-admin|wp-includes)/(css|js)/~',
|
||||
|
@ -185,11 +186,6 @@ if ( ! class_exists( 'WP_CHINA_YES' ) ) {
|
|||
$url = str_replace( 'downloads.wordpress.org', 'd.w.org.ibadboy.net', $url );
|
||||
}
|
||||
|
||||
//if ( stristr( $url, 'themes' ) ) {
|
||||
// var_dump($r);
|
||||
//exit;
|
||||
//}
|
||||
|
||||
$curl_version = '1.0.0';
|
||||
if ( function_exists( 'curl_version' ) ) {
|
||||
$curl_version_array = curl_version();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue