Skip to content

Commit 41ee540

Browse files
committed
Ensure has_data requests are cached if WP_Error.
1 parent c28c332 commit 41ee540

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

includes/Modules/Analytics.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1286,7 +1286,7 @@ protected function has_data_for_url( $url ) {
12861286
);
12871287

12881288
if ( is_wp_error( $reports ) ) {
1289-
return false;
1289+
$reports = array(); // Bypass data check and cache.
12901290
}
12911291

12921292
foreach ( $reports as $report ) {

includes/Modules/Search_Console.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ protected function has_data_for_url( $url ) {
364364
);
365365

366366
if ( is_wp_error( $response_rows ) ) {
367-
return false;
367+
$response_rows = array(); // Bypass data check and cache.
368368
}
369369

370370
foreach ( $response_rows as $data_row ) {

0 commit comments

Comments
 (0)