From 25a33c74a8432fe734da0965dbb12077f4fe6b21 Mon Sep 17 00:00:00 2001
From: potreb <potreb@gmail.com>
Date: Wed, 10 Mar 2021 15:28:39 +0100
Subject: [PATCH] Added scoper consts

---
 scoper.inc.php | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/scoper.inc.php b/scoper.inc.php
index 9c0f09f..6cd3b96 100644
--- a/scoper.inc.php
+++ b/scoper.inc.php
@@ -56,6 +56,42 @@ return [
     //
     // Fore more see https://github.com/humbug/php-scoper#whitelist
     'whitelist' => [
+	    'ABSPATH',
+	    'WPINC',
+	    'WP_LANG_DIR',
+	    'WP_PLUGIN_DIR',
+	    'WP_PLUGIN_URL',
+	    'WP_CONTENT_DIR',
+	    'WP_CONTENT_URL',
+	    'WP_HOME',
+	    'WP_SITEURL',
+	    'WP_TEMP_DIR',
+	    'WPMU_PLUGIN_DIR',
+	    'WPMU_PLUGIN_URL',
+	    'DB_CHARSET',
+	    'DB_COLLATE',
+	    'DB_HOST',
+	    'DB_NAME',
+	    'DB_PASSWORD',
+	    'DB_USER',
+	    'DOING_AUTOSAVE',
+	    'DOING_CRON',
+	    'DOING_AUTOSAVE',
+	    'WP_ADMIN',
+	    'WP_BLOG_ADMIN',
+	    'AUTOSAVE_INTERVAL',
+	    'WPLANG',
+	    'WP_DEFAULT_THEME',
+	    'WP_CRON_LOCK_TIMEOUT',
+	    'DISABLE_WP_CRON',
+	    'WP_MAIL_INTERVAL',
+	    'WP_MAIL_INTERVAL',
+	    'WP_POST_REVISIONS',
+	    'STYLESHEETPATH',
+	    'TEMPLATEPATH',
+	    'NONCE_SALT',
+	    'NONCE_KEY',
+	    'USER_COOKIE',
     ],
 
     // If `true` then the user defined constants belonging to the global namespace will not be prefixed.
-- 
GitLab