Skip to content

Commit

Permalink
Change Twitter reference in the relevant feature card and in settings…
Browse files Browse the repository at this point in the history
… search
  • Loading branch information
leonidasmi committed Mar 20, 2024
1 parent eeea07a commit f930ad7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions packages/js/src/settings/helpers/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -1287,11 +1287,12 @@ export const createSearchIndex = ( postTypes, taxonomies, { userLocale } = {} )
route: "/site-features",
routeLabel: __( "Site features", "wordpress-seo" ),
fieldId: "card-wpseo_social-twitter",
fieldLabel: __( "Twitter card data", "wordpress-seo" ),
fieldLabel: __( "X card data", "wordpress-seo" ),
keywords: [
__( "Social", "wordpress-seo" ),
__( "Share", "wordpress-seo" ),
__( "Tweet", "wordpress-seo" ),
__( "Twitter", "wordpress-seo" ),
],
},
og_default_image_id: {
Expand Down Expand Up @@ -1326,11 +1327,12 @@ export const createSearchIndex = ( postTypes, taxonomies, { userLocale } = {} )
route: "/site-representation",
routeLabel: __( "Site representation", "wordpress-seo" ),
fieldId: "input-wpseo_social-twitter_site",
fieldLabel: __( "Organization Twitter", "wordpress-seo" ),
fieldLabel: __( "Organization X", "wordpress-seo" ),
keywords: [
__( "Social", "wordpress-seo" ),
__( "Share", "wordpress-seo" ),
__( "Tweet", "wordpress-seo" ),
__( "Twitter", "wordpress-seo" ),
],
},
mastodon_url: {
Expand Down
6 changes: 3 additions & 3 deletions packages/js/src/settings/routes/site-features.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,10 @@ const SiteFeatures = () => {
cardId="card-wpseo_social-twitter"
inputId="input-wpseo_social-twitter"
imageSrc="/images/twitter_card.png"
title={ __( "Twitter card data", "wordpress-seo" ) }
title={ __( "X card data", "wordpress-seo" ) }
>
<p>{ __( "Allows for Twitter to display a preview with images and a text excerpt when a link to your site is shared.", "wordpress-seo" ) }</p>
<LearnMoreLink id="link-twitter-card-data" link="https://yoa.st/site-features-twitter-card-data" ariaLabel={ __( "Twitter card data", "wordpress-seo" ) } />
<p>{ __( "Allows for X to display a preview with images and a text excerpt when a link to your site is shared.", "wordpress-seo" ) }</p>
<LearnMoreLink id="link-twitter-card-data" link="https://yoa.st/site-features-twitter-card-data" ariaLabel={ __( "X card data", "wordpress-seo" ) } />
</FeatureCard>
<FeatureCard
name="wpseo.enable_enhanced_slack_sharing"
Expand Down

0 comments on commit f930ad7

Please sign in to comment.