| @@ -134,8 +134,13 @@ | ||
| 134 | 134 | if (php_sapi_name() === 'cli' || (defined('WP_CLI') && WP_CLI)) { |
| 135 | 135 | return; |
| 136 | 136 | } |
| 137 | 137 | |
| 138 | + if ( strpos( $_SERVER["REQUEST_URI"], "berqwp-ping" ) !== false ) { | |
| 139 | + echo "PONG"; | |
| 140 | + exit(); | |
| 141 | + } | |
| 142 | + | |
| 138 | 143 | if (isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] === 'GET' && !bwp_is_user_logged_in() && !bwp_is_ajax() && !berqDetectCrawler::is_crawler() && bwp_pass_cookie_requirement()) { |
| 139 | 144 | |
| 140 | 145 | $berqconfigs = berqConfigs::getInstance(); |
| 141 | 146 | $configs = $berqconfigs->get_configs(); |