diff --git a/scoper.inc.php b/scoper.inc.php index 9c0f09f5a4ed0ba34fd0d1db54f07f1587ad5ce3..6cd3b9613202b2b8901cd6c1708ed7e7a96903cf 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.