-
Notifications
You must be signed in to change notification settings - Fork 847
Adds unit tests and is_module_active method to SAL. #11010
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
Conversation
|
D22570-code. (newly created revision) |
This is automated check which relies on |
lezama
left a comment
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.
Thank you @zinigor 🙇
| } | ||
|
|
||
| function is_module_active( $module ) { | ||
| if ( is_user_member_of_blog() ) { |
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.
Why do we need the membership check here?
| } | ||
|
|
||
| function get_jetpack_modules() { | ||
| if ( is_user_member_of_blog() ) { |
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.
if we remove the check from here we will want to add it in json-endpoints/class.wpcom-json-api-get-site-endpoint.php
|
This is already deployed on the other side. Thanks, Miguel! |
jeherve
left a comment
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.
looks good. Merging.
In order to synchronize code between Jetpack and WordPress.com better one of the little pieces we needed was the
is_module_activemethod present in the Site Abstraction Layer. This change adds it as well as enforcing its existence in all extending classes.Changes proposed in this Pull Request:
is_module_activemethod for SAL Sites.Testing instructions:
Proposed changelog entry for your changes:
This blocks #10945