feat: 更新测试 URL 及代码格式化

This commit is contained in:
耗子 2024-03-09 18:23:41 +08:00
parent 7d38bc7adc
commit 2c86b5c546
2 changed files with 6 additions and 3 deletions

View file

@ -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();

View file

@ -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%;
}
}
}