Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed hard coded slugs from header menu step #246

Merged
merged 5 commits into from
Jun 7, 2023

Conversation

abhijitb
Copy link
Contributor

No description provided.

@abhijitb abhijitb added the Code Review The PR is in Code Review label May 30, 2023
@@ -99,6 +99,7 @@ protected static function get_theme_step_patterns() {
'site-header-left-logo-navigation-inline' => array(
'active' => true,
'shown' => true,
'header' => true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of adding a new key check, can we have a callback function? Similar to homepage-styles in get_theme_step_filters ? This way, we would have only the response sent from the backend, and the frontend would display the result based on the header chosen?
Or Can we handle the existence of the key header from here itself?
Basically try to send the maximum response from here with minimum alteration to the response in the frontend.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is done. .. thanks

@officiallygod officiallygod added Ready to merge The Code Review and QA is done and it can be merged. QA This PR is in QA and removed Code Review The PR is in Code Review Ready to merge The Code Review and QA is done and it can be merged. labels Jun 6, 2023
@abhijitb abhijitb merged commit 52fa321 into trunk Jun 7, 2023
@abhijitb abhijitb deleted the fix/remove-hard-coded-slugs-from-header-menu-step branch June 7, 2023 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
QA This PR is in QA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants