diff --git a/includes/Application.php b/includes/Application.php index 47754709d..05aecab97 100644 --- a/includes/Application.php +++ b/includes/Application.php @@ -71,6 +71,7 @@ public function __construct( Container $container ) { if ( Permissions::is_authorized_admin() || Permissions::rest_is_authorized_admin() ) { new RestAPI(); new WP_Admin(); + new ExternalRedirectInterceptor(); } if ( Permissions::is_authorized_admin() ) { diff --git a/includes/ExternalRedirectInterceptor.php b/includes/ExternalRedirectInterceptor.php new file mode 100644 index 000000000..850089b3a --- /dev/null +++ b/includes/ExternalRedirectInterceptor.php @@ -0,0 +1,56 @@ +