Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
plugin-template
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
Library
plugin-template
Commits
25a33c74
Commit
25a33c74
authored
4 years ago
by
potreb
Browse files
Options
Downloads
Patches
Plain Diff
Added scoper consts
parent
65efaf50
No related branches found
No related tags found
1 merge request
!39
Added scoper consts
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scoper.inc.php
+36
-0
36 additions, 0 deletions
scoper.inc.php
with
36 additions
and
0 deletions
scoper.inc.php
+
36
−
0
View file @
25a33c74
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment