feat(schema): add PodcastEpisode option to page and article type dropdowns - #23500
Open
faisalahammad wants to merge 4 commits into
Open
feat(schema): add PodcastEpisode option to page and article type dropdowns#23500faisalahammad wants to merge 4 commits into
faisalahammad wants to merge 4 commits into
Conversation
faisalahammad
added a commit
to faisalahammad/wordpress-seo
that referenced
this pull request
Jul 26, 2026
Coveralls upload failed with a 503 (service unavailable) and the code style job hit a git exit code 128 during runner cleanup. All tests and coding standards checks passed in the original run. This empty commit re-runs the checks. Refs Yoast#23500
Contributor
Author
CI failure diagnosisAll 4 failing checks were infrastructure flakes, not code defects:
I pushed an empty commit to re-trigger CI. The 3 infrastructure failures should pass on re-run. Request: Could a maintainer add the Thanks! |
faisalahammad
added a commit
to faisalahammad/wordpress-seo
that referenced
this pull request
Jul 26, 2026
The PHPDoc return-type improvements in schema-types.php fixed two coding standards issues on the branch, reducing the full-codebase error count below the 2386 threshold. The ratchet mechanism (exit code 128) requires the threshold to be updated to match the improved count. Refs Yoast#23500
|
A merge conflict has been detected for the proposed code changes in this PR. Please resolve the conflict by either rebasing the PR or merging in changes from the base branch. |
…downs - Adds 'PodcastEpisode' to Schema_Types::PAGE_TYPES and ARTICLE_TYPES. - Adds 'Podcast Episode' labels to get_page_type_options() and get_article_type_options(). - Tightens PHPDoc return type annotations for both option methods. - Adds unit tests covering the new option in both arrays. Fixes Yoast#23491
Coveralls upload failed with a 503 (service unavailable) and the code style job hit a git exit code 128 during runner cleanup. All tests and coding standards checks passed in the original run. This empty commit re-runs the checks. Refs Yoast#23500
The PHPDoc return-type improvements in schema-types.php fixed two coding standards issues on the branch, reducing the full-codebase error count below the 2386 threshold. The ratchet mechanism (exit code 128) requires the threshold to be updated to match the improved count. Refs Yoast#23500
faisalahammad
force-pushed
the
fix/23491-add-podcast-episode-schema-option
branch
from
July 29, 2026 12:50
0df3ca8 to
fad3a97
Compare
The post-rebase code style run reports 2376 errors against the previous 2384 threshold. The threshold is a tight ceiling — CI fails when the actual error count drifts from the committed value, so the threshold must move in lockstep with each stage of trunk. This commit brings the threshold in line with the current full-repo error count.
|
A merge conflict has been detected for the proposed code changes in this PR. Please resolve the conflict by either rebasing the PR or merging in changes from the base branch. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
Podcast sites that publish episodes as blog posts have no way to mark those posts as podcast episodes in the schema settings. The request in #23491 is to add "Podcast Episode" as an option in the schema dropdowns, so search engines and other consumers of structured data can understand that a post is a podcast episode.
Summary
This PR can be summarized in the following changelog entry:
Relevant technical choices:
PodcastEpisodeis added to both thePAGE_TYPESandARTICLE_TYPESconstants and to the matching label arrays inSchema_Types, so the option shows up in the metabox Schema tab and in the per-post-type defaults in the settings. All other consumers read from these constants, so no further wiring is needed.Meta_Tags_Contextoutputs"@type": [ "Article", "PodcastEpisode" ]in the Article piece. This multi-type notation is valid schema.org, and it is the same behaviour as other types that do not contain "Article" in their name, like Report.Test instructions
Test instructions for the acceptance test before the PR gets merged
This PR can be acceptance tested by following these steps:
"@type": [ "Article", "PodcastEpisode" ].Relevant test scenarios
The dropdowns are rendered from the same server-side options on every post type, so it is worth checking a regular post plus one custom post type that supports the schema settings.
Test instructions for QA when the code is in the RC
QA can test this PR by following these steps:
Impact check
This PR affects the following parts of the plugin, which may require extra testing:
Other environments
[shopify-seo], added test instructions for Shopify and attached theShopifylabel to this PR.[yoast-doc-extension], added test instructions for Yoast SEO for Google Docs and attached theGoogle Docs Add-onlabel to this PR.Documentation
Quality assurance
grunt build:imagesand committed the results, if my PR introduces or edits images or SVGs.Innovation
innovationlabel.Fixes #23491
Screen recording