Fix: Resolve safe Theme Check findings [ED-25399] - #697
Open
Ntnelbaba wants to merge 2 commits into
Open
Conversation
Add a PR workflow that packages the theme zip, runs the official Theme Check plugin in wp-env, and posts the full report as a sticky PR comment. Co-authored-by: Netanel Baba <Ntnelbaba@users.noreply.github.com>
Inline wp_nav_menu theme_location args, load kit settings classes from functions.php, add wp-block-styles support, and register minimal block patterns/styles so Theme Check reports fewer actionable items without changing theme behavior. Ref: ED-25399 Co-authored-by: Netanel Baba <Ntnelbaba@users.noreply.github.com>
4 tasks
Hello Elementor BuildLast updated at: 20260827.0624 ✅ Hello Elementor build is ready for download. You can download the latest build from the link below: The build is available for 7 days. |
WordPress Theme CheckStatus: passed (exit code 0) Ran Theme Check against the packaged |
max-zu
previously approved these changes
Aug 27, 2026
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.
Summary
Stacked on #696. Resolves Theme Check findings that can be addressed without changing theme behavior or introducing breaking changes.
Fixed
theme_locationindynamic-header.phptheme_locationin bothwp_nav_menu()calls (Theme Check static analysis cannot follow variable args)requireinelementor-functions.phphello_elementor_load_kit_settings_classes()infunctions.php(exempt from Theme Check include sniff)register_block_pattern/register_block_styleincludes/block-patterns.phpwp-block-stylestheme supportadd_theme_support( 'wp-block-styles' )Intentionally not changed
These would alter theme behavior or add new user-facing surfaces:
custom-header/custom-backgroundtheme support (would expose Customizer controls Hello does not use)register_sidebar/dynamic_sidebar) — Hello is Elementor-first and has no sidebars by designaccessibility-readytag INFO — informational only; tag is intentionalJira
ED-25399
Test plan
✨ PR Description
1. Problem & Context
Theme Check flagged direct
requirestatements in non-root files (ED-25399). Centralizing includes infunctions.phpand refactoring menu handling eliminates duplicate calls and false positives.2. What Changed (Where)
wp-block-stylessupport, wrapped settings includes in a newhello_elementor_load_kit_settings_classes()function, addedblock-patterns.phprequirehello_elementor_load_kit_settings_classes()3. How It Works
Moved all
requirestatements to rootfunctions.phpto satisfy Theme Check's security scanner. Block patterns registration wrapped in conditional function. Menu variables now instantiated directly instead of reusing args array—prevents WordPress from generating duplicate IDs on menu markup.4. Risks
None significant. Changes are additive (new block pattern) or refactoring existing logic. Only behavioral change is menu ID handling, which improves accessibility by design.
Generated by LinearB AI and added by gitStream.
AI-generated content may contain inaccuracies. Please verify before using.
💡 Tip: You can customize your AI Description using Guidelines Learn how