Skip to content

Jetpack CRM: Ensure admin color schemes have at least 4 color entries#55

Closed
dd32 wants to merge 2 commits intoproductionfrom
add/claude/crm-admin-color-fix
Closed

Jetpack CRM: Ensure admin color schemes have at least 4 color entries#55
dd32 wants to merge 2 commits intoproductionfrom
add/claude/crm-admin-color-fix

Conversation

@dd32
Copy link
Copy Markdown
Owner

@dd32 dd32 commented Apr 10, 2026

Summary

Test plan

  • Activate a color scheme with only 3 colors while CRM is active — verify no PHP notice
  • Verify the fix is skipped when CRM is not active

🤖 Generated with Claude Code

dd32 and others added 2 commits April 10, 2026 16:10
Workaround for zero-bs-crm accessing index 3 of admin color scheme
colors array when some schemes only define 3 colors. Only applies
when CRM is active (ZBS_PLUGIN_DIR defined).

See Automattic/jetpack#47143

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- One argument per line in multi-line function calls
- Avoid count() inside loop condition

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@dd32 dd32 closed this Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant