diff --git a/src/wp-admin/css/site-health.css b/src/wp-admin/css/site-health.css
index c12b52b019..14c0e24f0e 100644
|
a
|
b
|
body .health-check-accordion .health-check-accordion-panel[hidden] { |
| 430 | 430 | display: none; |
| 431 | 431 | } |
| 432 | 432 | |
| | 433 | body .health-check-accordion .health-check-accordion-panel .actions .button { |
| | 434 | margin-left: 1rem; |
| | 435 | } |
| | 436 | body .health-check-accordion .health-check-accordion-panel .actions .button:first-of-type { |
| | 437 | margin-left: 0; |
| | 438 | } |
| | 439 | |
| 433 | 440 | body .health-check-accordion dl dd { |
| 434 | 441 | margin: 0 0 0.5em 2em; |
| 435 | 442 | } |
diff --git a/src/wp-admin/includes/class-wp-site-health.php b/src/wp-admin/includes/class-wp-site-health.php
index 3921e8f734..101c5e4595 100644
|
a
|
b
|
class WP_Site_Health { |
| 1204 | 1204 | */ |
| 1205 | 1205 | public function get_test_https_status() { |
| 1206 | 1206 | $result = array( |
| 1207 | | 'label' => '', |
| 1208 | | 'status' => '', |
| | 1207 | 'label' => __( 'Your website is using an active HTTPS connection.' ), |
| | 1208 | 'status' => 'good', |
| 1209 | 1209 | 'badge' => array( |
| 1210 | 1210 | 'label' => 'Security', |
| 1211 | 1211 | 'color' => 'red', |
| 1212 | 1212 | ), |
| 1213 | | 'description' => '', |
| 1214 | | 'actions' => '', |
| | 1213 | 'description' => sprintf( |
| | 1214 | '<p>%s</p>', |
| | 1215 | __( 'An HTTPS connection is needed for many features on the web today, it also gains the trust of your visitors by helping to protecting their online privacy.' ) |
| | 1216 | ), |
| | 1217 | 'actions' => sprintf( |
| | 1218 | '<a class="button" href="%s">%s</a>', |
| | 1219 | esc_url( |
| | 1220 | /* translators: Website for explaining HTTPS and why it should be used. */ |
| | 1221 | __( 'https://wordpress.org/support/article/why-should-i-use-https/' ) |
| | 1222 | ), |
| | 1223 | __( 'Read more about why you should use HTTPS.' ) |
| | 1224 | ), |
| 1215 | 1225 | 'test' => 'https_status', |
| 1216 | 1226 | ); |
| 1217 | 1227 | |
| … |
… |
class WP_Site_Health { |
| 1233 | 1243 | ) |
| 1234 | 1244 | ); |
| 1235 | 1245 | |
| 1236 | | $result['actions'] = sprintf( |
| 1237 | | '<a href="%s">%s</a>', |
| | 1246 | $result['actions'] .= sprintf( |
| | 1247 | '<a class="button" href="%s">%s</a>', |
| 1238 | 1248 | esc_url( admin_url( 'options-general.php' ) ), |
| 1239 | 1249 | __( 'Update your site addresses' ) |
| 1240 | 1250 | ); |
| 1241 | | } else { |
| 1242 | | $result['status'] = 'good'; |
| 1243 | | |
| 1244 | | $result['label'] = __( 'Your website is using an active HTTPS connection.' ); |
| 1245 | 1251 | } |
| 1246 | 1252 | } else { |
| 1247 | 1253 | $result['status'] = 'recommended'; |
| 1248 | 1254 | |
| 1249 | 1255 | $result['label'] = __( 'Your site does not use HTTPS' ); |
| 1250 | | |
| 1251 | | $result['description'] = sprintf( |
| 1252 | | '<p>%s</p>', |
| 1253 | | __( 'An HTTPS connection is needed for many features on the web today, it also gains the trust of your visitors by helping to protecting their online privacy.' ) |
| 1254 | | ); |
| 1255 | | |
| 1256 | | $result['actions'] = sprintf( |
| 1257 | | '<a href="%s">%s</a>', |
| 1258 | | esc_url( |
| 1259 | | /* translators: Website for explaining HTTPS and why it should be used. */ |
| 1260 | | __( 'https://wordpress.org/support/article/why-should-i-use-https/' ) |
| 1261 | | ), |
| 1262 | | __( 'Read more about why you should use HTTPS.' ) |
| 1263 | | ); |
| 1264 | 1256 | } |
| 1265 | 1257 | |
| 1266 | 1258 | return $result; |