feat(agency): WP-CLI command + wp-config constants API (2.5.0) - #78
Merged
Conversation
wp webdecoy status|config|allowlist|logs for deploy scripts, and three new wp-config.php constants: WEBDECOY_DEFAULT_MODE (forces + locks the mode; the settings sanitizer carries the stored value forward while forced so a save cannot silently drift it), WEBDECOY_HIDE_ADMIN_UI (menu, widget, and all notices including critical-moment and connect; plugins list stays visible on purpose), WEBDECOY_MAX_LOG_RETENTION (clamped 1-3650 days, wired into the cleanup cron). Constant parsing and CLI value validation live in pure classes with tests (94 passing). An unrecognized WEBDECOY_DEFAULT_MODE is ignored, never guessed: a typo must not pick a side between watching and enforcing. config keys are a closed whitelist: api_key is encrypted at rest and org fields belong to the connect flow, so neither is writable from the CLI.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
wp webdecoy status|config|allowlist|logs for deploy scripts, and three
new wp-config.php constants: WEBDECOY_DEFAULT_MODE (forces + locks the
mode; the settings sanitizer carries the stored value forward while
forced so a save cannot silently drift it), WEBDECOY_HIDE_ADMIN_UI
(menu, widget, and all notices including critical-moment and connect;
plugins list stays visible on purpose), WEBDECOY_MAX_LOG_RETENTION
(clamped 1-3650 days, wired into the cleanup cron).
Constant parsing and CLI value validation live in pure classes with
tests (94 passing). An unrecognized WEBDECOY_DEFAULT_MODE is ignored,
never guessed: a typo must not pick a side between watching and
enforcing. config keys are a closed whitelist: api_key is encrypted at
rest and org fields belong to the connect flow, so neither is writable
from the CLI.