Skip to content

Add pronouns to user profile and schema#22598

Merged
thijsoo merged 6 commits intotrunkfrom
add-pronouns-to-user-profile-and-schema
Sep 24, 2025
Merged

Add pronouns to user profile and schema#22598
thijsoo merged 6 commits intotrunkfrom
add-pronouns-to-user-profile-and-schema

Conversation

@pls78
Copy link
Copy Markdown
Member

@pls78 pls78 commented Sep 24, 2025

Context

  • In this pull, pronouns was added to Person schema's pending state. This pull implements it for Yoast SEO.

Summary

This PR can be summarized in the following changelog entry:

  • Adds a Pronouns field to the user profile and includes these pronouns in the Schema.org output. Props to jdevalk.

Relevant technical choices:

  • Implemented as a Text value, as Schema.org states:

    We do not intend to enumerate all possible micro-syntaxes in all languages.

  • Implemented both in admin/views/user-profile.php (which seems unused?) and in a new file src/user-meta/framework/custom-meta/author-pronouns.php.

Test instructions

Test instructions for the acceptance test before the PR gets merged

This PR can be acceptance tested by following these steps:

  • Go to Users -> Profile
  • In Yoast SEO settings section, add your pronouns in the Pronouns to use field
  • Visit one of your posts in the frontend and inspect the source code
    • Locate the Schema output and verify the Person Schema piece has a pronouns property with the value specified in your profile
  • Go back to Users -> Profile
  • Leave the Pronouns to use field blank
  • Visit your post in the frontend and inspect the source code
    • Locate the Schema output and verify the Person Schema piece doesn't have the pronouns property anymore

Relevant test scenarios

  • Changes should be tested on different posts/pages/taxonomies/custom post types/custom taxonomies
  • Changes should be tested on multisite

Test instructions for QA when the code is in the RC

  • QA should use the same steps as above.

UI changes

  • This PR changes the UI in the plugin. I have added the 'UI change' label to this PR.

Documentation

  • I have written documentation for this change. For example, comments in the Relevant technical choices, comments in the code, documentation on Confluence / shared Google Drive / Yoast developer portal, or other.

Quality assurance

Fixes #22595

@pls78 pls78 added community-patch changelog: enhancement Needs to be included in the 'Enhancements' category in the changelog labels Sep 24, 2025
@pls78 pls78 marked this pull request as ready for review September 24, 2025 09:02
@thijsoo thijsoo added this to the 26.2 milestone Sep 24, 2025
Copy link
Copy Markdown
Contributor

@thijsoo thijsoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CR + ACC 👍

@thijsoo thijsoo merged commit ed41ad5 into trunk Sep 24, 2025
30 of 38 checks passed
@thijsoo thijsoo deleted the add-pronouns-to-user-profile-and-schema branch September 24, 2025 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog: enhancement Needs to be included in the 'Enhancements' category in the changelog community-patch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix Add pronouns to user profile page and Person schema output. #22286

2 participants