Skip to content

Commit 65a8e16

Browse files
committed
Minor refactor.
1 parent dbd430b commit 65a8e16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Admin/Module.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,10 @@ public function maybe_enable_proxy( $settings, $old_settings ) {
199199
/**
200200
* No need to run this on each update run, or when the proxy is disabled.
201201
*/
202-
$settings_proxy = ( is_array( $settings ) && isset( $settings['proxy_enabled'] ) ) ? $settings['proxy_enabled'] : '';
203-
$old_proxy = ( is_array( $old_settings ) && isset( $old_settings['proxy_enabled'] ) ) ? $old_settings['proxy_enabled'] : '';
202+
$new_proxy_setting = ( is_array( $settings ) && isset( $settings['proxy_enabled'] ) ) ? $settings['proxy_enabled'] : '';
203+
$old_proxy_setting = ( is_array( $old_settings ) && isset( $old_settings['proxy_enabled'] ) ) ? $old_settings['proxy_enabled'] : '';
204204

205-
if ( empty( $settings_proxy ) || ( $settings_proxy === 'on' && $old_proxy === 'on' ) ) {
205+
if ( empty( $new_proxy_setting ) || ( $new_proxy_setting === 'on' && $old_proxy_setting === 'on' ) ) {
206206
return $settings;
207207
}
208208

0 commit comments

Comments
 (0)