-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Refactor theme install action. #11949
Conversation
Thinking some more about this, are we actually guaranteeing that both the child and parent are installed before attempting to activate the child? Parent theme install is only attempted after child install (ref), so that's fine. But is it possible that we should |
@ockham Yeah, I pondered this very question in the PR where we moved the parent install, and concluded that |
However :) , looking at the code again, I think my conclusion was wrong. We need to return the parent install promise, otherwise the activate code is only waiting on the first install. |
Yeah, looking at reduxjs/redux#1676 (comment), I was coming to the same conclusion 😄 @budzanowski Wanna add that |
I was thinking about it when working on this :) And concluded that we do not need this. |
974513f
to
5e5aa79
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
Info
Installing a theme that had a parent theme required also installation of that parent theme.
Code for that was working but was using promises in non optimal way.
Testing
Verify that on Jetpack site themes that have parent themes still install successfully.
Example themes with parents Goran( Edin ) or Sidekick( Superhero )