-
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
Help Center: link to support docs if disconnected from JPOP #91630
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
Tested and everything is looking good! |
public function is_jetpack_connected() { | ||
$user_id = get_current_user_id(); | ||
return ( new Connection_Manager( 'jetpack' ) )->is_user_connected( $user_id ); | ||
} |
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.
This check should be only done in Atomic site.
Fixes #91558
Proposed Changes
Add check to Help Center in ETK to determine if user is connected to Jetpack. Then load simplified version if not.
Why are these changes being made?
Help Center relies on a WordPress.com user to do most of its functions. For Atomic and Jetpack only users this means they need to be connected to WordPress.com in order for it to work. To prevent loading a useless Help Center and save on loading times we have decided it would be best to make Help Center a button that opens the support docs if the user is not connected.
Testing Instructions
/wp-admin
and the post editor to make sure the help center is functioning as normal./_cli
and runningjetpack disconnect user ##USER_ID## --force
. Be aware that this will remove your SSH key connection to the site if you have it setup./wp-admin
and the post editor to see the Help Center open a new tab to the support docs.