Changeset 60806 for trunk/src/wp-admin/includes/class-wp-site-health.php
- Timestamp:
- 09/28/2025 11:38:57 PM (7 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-site-health.php
r60530 r60806 1077 1077 } 1078 1078 1079 $failures[ $library ] = "<span class='dashicons $class' ><span class='screen-reader-text'>$screen_reader</span></span> $message";1079 $failures[ $library ] = "<span class='dashicons $class' aria-hidden='true'></span><span class='screen-reader-text'>$screen_reader</span> $message"; 1080 1080 } 1081 1081 } … … 2441 2441 2442 2442 if ( empty( $page_cache_detail['response_time'] ) ) { 2443 $page_cache_test_summary[] = '<span class="dashicons dashicons-dismiss" ></span> ' . __( 'Server response time could not be determined. Verify that loopback requests are working.' );2443 $page_cache_test_summary[] = '<span class="dashicons dashicons-dismiss" aria-hidden="true"></span> ' . __( 'Server response time could not be determined. Verify that loopback requests are working.' ); 2444 2444 } else { 2445 2445 2446 2446 $threshold = $this->get_good_response_time_threshold(); 2447 2447 if ( $page_cache_detail['response_time'] < $threshold ) { 2448 $page_cache_test_summary[] = '<span class="dashicons dashicons-yes-alt" ></span> ' . sprintf(2448 $page_cache_test_summary[] = '<span class="dashicons dashicons-yes-alt" aria-hidden="true"></span> ' . sprintf( 2449 2449 /* translators: 1: The response time in milliseconds, 2: The recommended threshold in milliseconds. */ 2450 2450 __( 'Median server response time was %1$s milliseconds. This is less than the recommended %2$s milliseconds threshold.' ), … … 2453 2453 ); 2454 2454 } else { 2455 $page_cache_test_summary[] = '<span class="dashicons dashicons-warning" ></span> ' . sprintf(2455 $page_cache_test_summary[] = '<span class="dashicons dashicons-warning" aria-hidden="true"></span> ' . sprintf( 2456 2456 /* translators: 1: The response time in milliseconds, 2: The recommended threshold in milliseconds. */ 2457 2457 __( 'Median server response time was %1$s milliseconds. It should be less than the recommended %2$s milliseconds threshold.' ), … … 2462 2462 2463 2463 if ( empty( $page_cache_detail['headers'] ) ) { 2464 $page_cache_test_summary[] = '<span class="dashicons dashicons-warning" ></span> ' . __( 'No client caching response headers were detected.' );2464 $page_cache_test_summary[] = '<span class="dashicons dashicons-warning" aria-hidden="true"></span> ' . __( 'No client caching response headers were detected.' ); 2465 2465 } else { 2466 $headers_summary = '<span class="dashicons dashicons-yes-alt" ></span>';2466 $headers_summary = '<span class="dashicons dashicons-yes-alt" aria-hidden="true"></span>'; 2467 2467 $headers_summary .= ' ' . sprintf( 2468 2468 /* translators: %d: Number of caching headers. */ … … 2480 2480 2481 2481 if ( $page_cache_detail['advanced_cache_present'] ) { 2482 $page_cache_test_summary[] = '<span class="dashicons dashicons-yes-alt" ></span> ' . __( 'A page cache plugin was detected.' );2482 $page_cache_test_summary[] = '<span class="dashicons dashicons-yes-alt" aria-hidden="true"></span> ' . __( 'A page cache plugin was detected.' ); 2483 2483 } elseif ( ! ( is_array( $page_cache_detail ) && ! empty( $page_cache_detail['headers'] ) ) ) { 2484 2484 // Note: This message is not shown if client caching response headers were present since an external caching layer may be employed. 2485 $page_cache_test_summary[] = '<span class="dashicons dashicons-warning" ></span> ' . __( 'A page cache plugin was not detected.' );2485 $page_cache_test_summary[] = '<span class="dashicons dashicons-warning" aria-hidden="true"></span> ' . __( 'A page cache plugin was not detected.' ); 2486 2486 } 2487 2487
Note: See TracChangeset
for help on using the changeset viewer.