@@ -416,7 +416,7 @@ public function page_cache() {
416
416
}
417
417
418
418
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 ' );
420
420
} else {
421
421
$ page_cache_test_summary [] = '<span class="dashicons dashicons-yes-alt"></span> ' .
422
422
sprintf (
@@ -535,7 +535,7 @@ public function get_page_cache_detail( $use_previous_result = false ) {
535
535
* Note: key is header name and value could be callable function to verify header value.
536
536
* Empty value mean existence of header detect page cache is enable.
537
537
*
538
- * @return array List of header and it's verification callback .
538
+ * @return array List of client caching headers and their (optional) verification callbacks .
539
539
*/
540
540
protected static function get_page_cache_headers () {
541
541
@@ -582,9 +582,9 @@ protected static function get_page_cache_headers() {
582
582
* @return WP_Error|array {
583
583
* Page caching detection details or else error information.
584
584
*
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.
588
588
* }
589
589
*/
590
590
public function check_for_page_caching () {
0 commit comments