From c49681ddd81656ba8206b2b741ec0efdb2bdc385 Mon Sep 17 00:00:00 2001 From: Brett Mason Date: Wed, 13 Nov 2024 10:57:06 +0000 Subject: [PATCH] Allow staging for remote images This should prove useful for beta sites when a live site is available to request images from. --- includes/classes/RemoteFiles/RemoteFiles.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/classes/RemoteFiles/RemoteFiles.php b/includes/classes/RemoteFiles/RemoteFiles.php index afd3608..aee830e 100644 --- a/includes/classes/RemoteFiles/RemoteFiles.php +++ b/includes/classes/RemoteFiles/RemoteFiles.php @@ -68,7 +68,7 @@ public function setup() { * @return bool */ private function is_safe_environment(): bool { - return in_array( $this->environment(), [ 'development', 'local' ], true ); + return in_array( $this->environment(), [ 'development', 'local', 'staging' ], true ); } /**