-
Notifications
You must be signed in to change notification settings - Fork 806
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
Sharing: Add X button #33134
Sharing: Add X button #33134
Conversation
Update the icon font, the social icons widget, the social menu, the social-logos package to include the new X icon. Noting that this purposefully does not replace the existing Twitter icon. This will allow site owners to decide whether the icon they'd like to use. It should be less forceful that way, we will not update the existing Twitter icon that may be in use on many sites; site owners will do that themselves if they'd like. Related PR: Automattic/social-logos#126
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 🤖 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. Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped. Jetpack plugin:
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
5439382
to
5ae2354
Compare
5ae2354
to
bb74dfb
Compare
This adds a new button for the X service. - It does not replace the existing Twitter button, for the reasons we discussed in #33118. This is less forceful on site owners. - The new Share_X class extends the existing Twitter class so we can rely on that for now. - At some point in the future, we may be able to merge the 2, once the Twitter brand is more deprecated than it is today.
bb74dfb
to
37c9f87
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.
I don't know if I'm testing this wrong, but the actual sharing doesn't work for me. When I click the X sharing button, a new window opens that just takes me to the same page. Can it be due to the fact that the URL parameter still says twitter
instead of X
?
We cannot rely on extending the Twitter class, since it is not always available. See #33134 (review)
Ah, that's my bad. I had only tested on a site where the old Twitter button was also active. This obviously won't always be the case, so we cannot just extend the Twitter class. I've just pushed 4a8fc54 |
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 to me and works! No official button is available yet right? Approving this PR so we can merge and test in the beta, and if there's an option for an official button later we can add it to a followup.
Correct. Maybe one will be added at some point in the future. |
@sdixon194 Following-up to your remark about official buttons, I just opened #33474 to improve the button when using the Official style. Thank you! |
Co-authored-by: sdixon194 <steve.dixon@automattic.com>
Fixes #32178
Fixes #33315
Proposed changes:
This PR does 2 things:
Notes
Other information:
Jetpack product discussion
No discussion on this, but some previous related PRs:
Does this pull request change what data or activity we track or use?
Testing instructions: