Changeset 54044 for trunk/src/wp-admin/includes/class-wp-site-health.php
- Timestamp:
- 09/01/2022 12:17:02 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-site-health.php
r54043 r54044 1703 1703 $result['status'] = 'recommended'; 1704 1704 $error_info = sprintf( 1705 /* translators: 1 is error message, 2 is error code*/1705 /* translators: 1: Error message, 2: Error code. */ 1706 1706 __( 'Unable to detect page cache due to possible loopback request problem. Please verify that the loopback request test is passing. Error: %1$s (Code: %2$s)' ), 1707 1707 $page_cache_detail->get_error_message(), … … 1738 1738 if ( $page_cache_detail['response_time'] < $threshold ) { 1739 1739 $page_cache_test_summary[] = '<span class="dashicons dashicons-yes-alt"></span> ' . sprintf( 1740 /* translators: 1: The response time in milliseconds . 2: The recommended thresholdmilliseconds. */1740 /* translators: 1: The response time in milliseconds, 2: The recommended threshold in milliseconds. */ 1741 1741 __( 'Median server response time was %1$s milliseconds. This is less than the recommended %2$s milliseconds threshold.' ), 1742 1742 number_format_i18n( $page_cache_detail['response_time'] ), … … 1745 1745 } else { 1746 1746 $page_cache_test_summary[] = '<span class="dashicons dashicons-warning"></span> ' . sprintf( 1747 /* translators: 1: The response time in milliseconds . 2: The recommended thresholdmilliseconds. */1747 /* translators: 1: The response time in milliseconds, 2: The recommended threshold in milliseconds. */ 1748 1748 __( 'Median server response time was %1$s milliseconds. It should be less than the recommended %2$s milliseconds threshold.' ), 1749 1749 number_format_i18n( $page_cache_detail['response_time'] ), … … 1756 1756 } else { 1757 1757 $headers_summary = '<span class="dashicons dashicons-yes-alt"></span>'; 1758 $headers_summary .= sprintf(1759 /* translators: Placeholder is number of caching headers*/1758 $headers_summary .= ' ' . sprintf( 1759 /* translators: %d: Number of caching headers. */ 1760 1760 _n( 1761 ' There was %d client caching response header detected:',1762 ' There were %d client caching response headers detected:',1761 'There was %d client caching response header detected:', 1762 'There were %d client caching response headers detected:', 1763 1763 count( $page_cache_detail['headers'] ) 1764 1764 ), 1765 1765 count( $page_cache_detail['headers'] ) 1766 1766 ); 1767 $headers_summary .= ' <code>' . implode( '</code>, <code>', $page_cache_detail['headers'] ) . '</code>.';1767 $headers_summary .= ' <code>' . implode( '</code>, <code>', $page_cache_detail['headers'] ) . '</code>.'; 1768 1768 $page_cache_test_summary[] = $headers_summary; 1769 1769 } … … 2411 2411 'description' => sprintf( 2412 2412 '<p>%s</p>', 2413 __( "A persistent object cache makes your site's database more efficient, resulting in faster load times because WordPress can retrieve your site's content and settings much more quickly.")2413 __( 'A persistent object cache makes your site’s database more efficient, resulting in faster load times because WordPress can retrieve your site’s content and settings much more quickly.' ) 2414 2414 ), 2415 2415 'actions' => sprintf(
Note: See TracChangeset
for help on using the changeset viewer.