Friday, December 6, 2019
1 change · master
Code cleanup and technical improvements
This change streamlines how website information is passed during theme installation. It is an internal cleanup that helps ensure theme setup steps apply to the correct website and supports more consistent future behavior.
Original PR description
Before this commit, the website was given as a parameter of the
_post_copy function which is called after theme install. It was then
transfered through the context when calling the theme sub' post_copy
function.
It makes actually more sense to directly call the _post_copy function
with the right website in the context instead of a parameter. This will
also allow to call enable_view/disable_view in the default post_copy
common to all theme, with the right website.