Skip to content

Commit a02b416

Browse files
committed
Improve strings and comments
1 parent 662ea8c commit a02b416

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Admin/SiteHealth.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ public function page_cache() {
416416
}
417417

418418
if ( empty( $page_cache_detail['headers'] ) ) {
419-
$page_cache_test_summary[] = '<span class="dashicons dashicons-warning"></span> ' . __( 'No client caching response headers were detected in response.', 'amp' );
419+
$page_cache_test_summary[] = '<span class="dashicons dashicons-warning"></span> ' . __( 'No client caching response headers were detected.', 'amp' );
420420
} else {
421421
$page_cache_test_summary[] = '<span class="dashicons dashicons-yes-alt"></span> ' .
422422
sprintf(
@@ -535,7 +535,7 @@ public function get_page_cache_detail( $use_previous_result = false ) {
535535
* Note: key is header name and value could be callable function to verify header value.
536536
* Empty value mean existence of header detect page cache is enable.
537537
*
538-
* @return array List of header and it's verification callback.
538+
* @return array List of client caching headers and their (optional) verification callbacks.
539539
*/
540540
protected static function get_page_cache_headers() {
541541

@@ -582,9 +582,9 @@ protected static function get_page_cache_headers() {
582582
* @return WP_Error|array {
583583
* Page caching detection details or else error information.
584584
*
585-
* @type bool $advanced_cache_present
586-
* @type array $page_caching_response_headers
587-
* @type array $response_timing
585+
* @type bool $advanced_cache_present Whether a page caching plugin is present.
586+
* @type array[] $page_caching_response_headers Sets of client caching headers for the responses.
587+
* @type float[] $response_timing Response timings.
588588
* }
589589
*/
590590
public function check_for_page_caching() {

0 commit comments

Comments
 (0)