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
Rename Twitter to X #21248
Rename Twitter to X #21248
Conversation
…he person's schema
ceaa869
to
c8b4abc
Compare
83b17c4
to
bd1d232
Compare
@leonidasmi Please be aware that following packages have been abandoned and are not actively maintained anymore:
Please consider using the other packages instead. |
fda7ddf
to
acbb68f
Compare
Pull Request Test Coverage Report for Build 71788701a3cbada3a4c855b346a4e826f85af8e8Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
a439a0f
to
f858760
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.
CR 🏗️
Found some more cases you skipped (ignoring code and code comments):
esc_html__( 'Twitter usernames can only contain letters, numbers, and underscores. %s', 'wordpress-seo' ), __( '%s does not seem to be a valid Twitter Username. Please correct.', 'wordpress-seo' ), wordpress-seo/packages/js/src/first-time-configuration/tailwind-components/helpers/index.js
Line 14 in 93ebce6
{ name: "Twitter", placeholder: __( "E.g. https://www.twitter.com/yoast", "wordpress-seo" ) }, __( "The profile is not valid. Please use only 1-25 letters, numbers and underscores or enter a valid Twitter URL.", "wordpress-seo" ),
More debatable, we might want to check developer.yoast.com too? 😅
* Filter: 'wpseo_twitter_creator_account' - Allow changing the Twitter account as output in the Twitter card by Yoast SEO.
packages/helpers/src/social-preview-image-validation/twitterValidation.js
Outdated
Show resolved
Hide resolved
The wordpress-seo/admin/class-yoast-input-validation.php one, the wordpress-seo/packages/js/src/first-time-configuration/tailwind-components/helpers/index.js one and the wordpress-seo/inc/options/class-wpseo-option-social.php I decided not to fix because it doesnt look like they're possible to be shown, so we wouldnt be able to test. And I decided not to remove them either, to keep the scope of the already sizeable PR, small. I could have documented this though, my bad. I'll create a technical debt task for all three, if you agree @igorschoester. The wordpress-seo/packages/js/src/settings/helpers/validation.js one though I plainly missed it, so good catch! I'm fixing it and also re-scanning the repo to see if I missed something else, although between us I think we now have covered everything.
I had decided to not change the name of that filter, obviously, but good spot on changing the comment of it, at least! And also yes, I think we have to scan developer.yoast.com as well 😟 |
…lidation.js Co-authored-by: Igor <35524806+igorschoester@users.noreply.github.com>
…/wordpress-seo into 115-rename-twitter-references-to-x
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.
AT ✅
Context
Twitter
, toX
.sameAs
attributes.Summary
This PR can be summarized in the following changelog entry:
Twitter
references toX
, including the X profile'ssameAs
schema output URL.Relevant technical choices:
Test instructions
Test instructions for the acceptance test before the PR gets merged
This PR can be acceptance tested by following these steps:
User's profile
X username (without @)
instead ofTwitter username (without @)
sameAs
attribute in thePerson
node in the schema has ax.com
domain instead of atwitter.com
domainsameAs
attribute in thePerson
node in the schema has ax.com
domain instead of atwitter.com
domain.https://twitter.com/test
value of thesameAs
attribute tohttps://x.com/test
Organization's profile
https://x.com/test
orhttps://twitter.com/test
ortest
and store that. Confirm in the frontend that thesameAs
attribute of theOrganization
node ishttps://x.com/test
https://x.com/test
test
https://x.com/test
orhttps://twitter.com/test
ortest
and store that. Confirm in the frontend that thesameAs
attribute of theOrganization
node ishttps://x.com/test
https://twitter.com/test
value of thesameAs
attribute tohttps://x.com/test
Social
,Share
,Tweet
and nowTwitter
too, in the settings search, displays theOrganization X
instead ofOrganization Twitter
The profile is not valid. Please use only 1-25 letters, numbers and underscores or enter a valid X URL.
message and if you tried to save it like that, it would give a notice with the same message:Conflicting plugins
...which might make Facebook, X, LinkedIn and other social networks use the wrong texts...
:Twitter card data setting
Learn more about X card data (Opens in a new browser tab)
Social
,Share
,Tweet
and nowTwitter
too, in the settings search, displays theX card data
instead ofTwitter card data
Post publish sidebar
X appearance in sidebar/metabox
Make sure you dont have Premium enabled
Go to either Block editor/Classic editor/Elementor editor
Go to the social tab in the metabox (for block and classic) or click the Social Media appearance in the sidebar (for block and elementor)
Confirm that the second tab is now named
X appearance
and not Twitter appearanceOpen it and check that the fields are now called
X Image
,X Title
andX description
Confirm that you see
X share preview
above the upsell. Also confirm that theUnlock with Yoast SEO Premium
still links tohttps://yoa.st/social-preview-twitter
Confirm the same with having the Open Graph feature disabled from Yoast settings:
Activate Premium and confirm the same
AI Generator for Twitter
Activate Premium
Go to edit a post and go to the social appearance to add X title and description
When you click Use AI for the X title or description, confirm that the modal that opens has a
AI X title generator
title and above the preview it readsX preview
.Do that for all editors
Relevant test scenarios
Test instructions for QA when the code is in the RC
Impact check
This PR affects the following parts of the plugin, which may require extra testing:
og:
andtwitter:
meta tags are staying the same with this PR and without.get_suggestions
request and confirm that it hasplatform:"Twitter"
parameterUI changes
Other environments
[shopify-seo]
, added test instructions for Shopify and attached theShopify
label to this PR.Documentation
Quality assurance
Innovation
innovation
label.Fixes https://github.com/Yoast/reserved-tasks/issues/115