Skip to content

Exclude bg image id from style output vars#2651

Merged
Crabcyborg merged 2 commits into
masterfrom
exclude_bg_image_id_from_style_output_vars
Dec 12, 2025
Merged

Exclude bg image id from style output vars#2651
Crabcyborg merged 2 commits into
masterfrom
exclude_bg_image_id_from_style_output_vars

Conversation

@Crabcyborg
Copy link
Copy Markdown
Contributor

No description provided.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Dec 12, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

Extracts hard-coded CSS variable exclusion logic from the output_vars method into a new private static helper method get_style_keys_to_remove_from_output_vars(). The helper centralizes key management and adds bg_image_id to the excluded set, while the public output flow and validation remain unchanged.

Changes

Cohort / File(s) Summary
CSS Variable Exclusion Refactoring
classes/helpers/FrmStylesHelper.php
Centralizes hard-coded CSS variable exclusion keys by extracting them into a new private static helper method; adds bg_image_id to the excluded keys set

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

  • Verify that bg_image_id addition to exclusions is intentional and correct
  • Ensure the new helper method properly encapsulates all previously hard-coded exclusion keys
  • Confirm no unintended changes to the public output_vars behavior

Possibly related PRs

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch exclude_bg_image_id_from_style_output_vars

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between fb0e39e and d8a59a9.

📒 Files selected for processing (1)
  • classes/helpers/FrmStylesHelper.php (2 hunks)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Crabcyborg Crabcyborg merged commit 32b847c into master Dec 12, 2025
15 of 16 checks passed
@Crabcyborg Crabcyborg deleted the exclude_bg_image_id_from_style_output_vars branch December 12, 2025 14:43
@Crabcyborg Crabcyborg modified the milestones: 6.27, 6.26.1 Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant