mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-06 21:53:56 +08:00
feat: 更新测试 URL 及代码格式化
This commit is contained in:
parent
7d38bc7adc
commit
2c86b5c546
2 changed files with 6 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue