Closed tbradsha closed 1 day ago
Thank you for your PR!
When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation :robot:
The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available.
Follow this PR Review Process:
Still unsure? Reach out in #jetpack-developers for guidance!
This makes sure the correct Gravatar URL is used for the dashboard's Recent Activity section.
Proposed changes:
I spotted this when clicking through a new site:
Digging around, I realized that the Recent Activity avatar was grabbing the gravatar of the contact ID that matches the WP ID that made the change. In other words, if WPID 1 (the admin) makes a change, it'll show the gravatar of Contact ID 1 (an arbitrary contact.
In other words:
I adjusted the logic to correctly generate gravatar URL for the WP user instead. If the WP user no longer exists, the image won't be rendered.
Other information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions:
In a new site:
/wp-admin/profile.php
/wp-admin/admin.php?page=zerobscrm-dash
/wp-admin/admin.php?page=zerobscrm-dash
In
trunk
, step 2 will generate a PHP notice (for each item in the Recent Activity section) and step 4 will show the contact's gravatar instead of the WP user's gravatar.In the
fix/crm/php_error_on_dash
branch, the correct gravatar will show.