Skip to content

Commit 946efda

Browse files
authored
Connection: add vip and newspack check to should_allow_error_filtering (#45481)
1 parent 08504b6 commit 946efda

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: minor
2+
Type: added
3+
4+
Added newspack and vip check to should_allow_error_filtering.

projects/packages/connection/src/class-error-handler.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,11 @@ public function handle_verified_errors() {
296296
*/
297297
protected function should_allow_error_filtering() {
298298
$host = new \Automattic\Jetpack\Status\Host();
299-
return $host->is_woa_site();
299+
if ( $host->is_woa_site() || $host->is_vip_site() || $host->is_newspack_site() ) {
300+
return true;
301+
}
302+
303+
return false;
300304
}
301305

302306
/**

0 commit comments

Comments
 (0)