Skip to content

Commit

Permalink
fix(cli-server/router.php) disable uopz if active in the router
Browse files Browse the repository at this point in the history
  • Loading branch information
lucatume committed Dec 11, 2023
1 parent 7d31ddd commit a2f5a38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/cli-server/router.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ), '/' );

Expand Down

0 comments on commit a2f5a38

Please sign in to comment.