File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments