Changeset 45052
- Timestamp:
- 03/28/2019 04:14:03 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-site-health.php
r45049 r45052 1203 1203 public function get_test_https_status() { 1204 1204 $result = array( 1205 'label' => '',1206 'status' => ' ',1205 'label' => __( 'Your website is using an active HTTPS connection.' ), 1206 'status' => 'good', 1207 1207 'badge' => array( 1208 1208 'label' => 'Security', 1209 1209 'color' => 'red', 1210 1210 ), 1211 'description' => '', 1212 'actions' => '', 1211 'description' => sprintf( 1212 '<p>%s</p>', 1213 __( '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.' ) 1214 ), 1215 'actions' => sprintf( 1216 '<p><a href="%s">%s</a></p>', 1217 esc_url( 1218 /* translators: Website for explaining HTTPS and why it should be used. */ 1219 __( 'https://wordpress.org/support/article/why-should-i-use-https/' ) 1220 ), 1221 __( 'Read more about why you should use HTTPS' ) 1222 ), 1213 1223 'test' => 'https_status', 1214 1224 ); … … 1232 1242 ); 1233 1243 1234 $result['actions'] = sprintf(1235 '< a href="%s">%s</a>',1244 $result['actions'] .= sprintf( 1245 '<p><a href="%s">%s</a></p>', 1236 1246 esc_url( admin_url( 'options-general.php' ) ), 1237 1247 __( 'Update your site addresses' ) 1238 1248 ); 1239 } else {1240 $result['status'] = 'good';1241 1242 $result['label'] = __( 'Your website is using an active HTTPS connection.' );1243 1249 } 1244 1250 } else { … … 1246 1252 1247 1253 $result['label'] = __( 'Your site does not use HTTPS' ); 1248 1249 $result['description'] = sprintf(1250 '<p>%s</p>',1251 __( '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.' )1252 );1253 1254 $result['actions'] = sprintf(1255 '<a href="%s">%s</a>',1256 esc_url(1257 /* translators: Website for explaining HTTPS and why it should be used. */1258 __( 'https://wordpress.org/support/article/why-should-i-use-https/' )1259 ),1260 __( 'Read more about why you should use HTTPS.' )1261 );1262 1254 } 1263 1255
Note: See TracChangeset
for help on using the changeset viewer.