From a2f5a38563ec42f729f4b20ab139e35f7d237f9d Mon Sep 17 00:00:00 2001 From: Luca Tumedei Date: Mon, 11 Dec 2023 09:57:21 +0100 Subject: [PATCH] fix(cli-server/router.php) disable uopz if active in the router --- includes/cli-server/router.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/cli-server/router.php b/includes/cli-server/router.php index f3627261a..2c3209d96 100644 --- a/includes/cli-server/router.php +++ b/includes/cli-server/router.php @@ -4,6 +4,10 @@ * Extracted from the `wp-cli` project: https://wp-cli.org/ */ +if (function_exists('uopz_allow_exit')) { + uopz_allow_exit(true); +} + $root = $_SERVER['DOCUMENT_ROOT']; $path = '/'. ltrim( parse_url( urldecode( $_SERVER['REQUEST_URI'] ),PHP_URL_PATH ), '/' );