diff --git a/wp-config.php b/wp-config.php index bbbce84a1bd33d7f165aee7d267f87ece9544ec8..b214b0b3b06605c63e79435511d7ae48af5b15c5 100644 --- a/wp-config.php +++ b/wp-config.php @@ -133,7 +133,7 @@ define('R2DB_FLEXIHASH_REPLICAS', 128); /* * A/I patch: global recaptcha key. */ -if (in_array('recaptcha', $noblogs_config)) { +if (array_key_exists('recaptcha', $noblogs_config)) { define('GLOBAL_RECAPTCHA_KEY', $noblogs_config['recaptcha']['key']); define('GLOBAL_RECAPTCHA_PRIVATE_KEY', $noblogs_config['recaptcha']['private_key']); } @@ -141,7 +141,7 @@ if (in_array('recaptcha', $noblogs_config)) { /* * A/I Patch: print debug info on demand when the debug cookie is set. */ -if (in_array('debug_cookie_name', $noblogs_config) && +if (array_key_exists('debug_cookie_name', $noblogs_config) && !empty($_COOKIE[$noblogs_config['debug_cookie_name']])) { define('WP_DEBUG', true); define('WP_DEBUG_LOG', true);