Repository navigation
Yoast SEO 29.0 — docs(sitemaps): Document CSS stylesheet API and deprecate XSL stylesheet API - #438
Open
claude[bot] wants to merge 1 commit into
Open
claude[bot] wants to merge 1 commit into
claude[bot] wants to merge 1 commit into
Conversation
…L deprecations in 29.0 Adds a new Stylesheet section to the XML Sitemaps API reference documenting: - WPSEO_Sitemaps::register_css() for add-ons to supply CSS stylesheets for custom sitemap types (served from <name>-sitemap.css on the home URL) - wpseo_stylesheet_url filter for modifying the main sitemap's XML-stylesheet processing instruction - Deprecation notice for WPSEO_Sitemaps::register_xsl() and wpseo_xsl_<type> Source: 29.0-RC3 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Deploying yoast-developer with
|
| Latest commit: |
0c1f5a2
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://d431aad1.yoast-developer.pages.dev |
| Branch Preview URL: | https://rc-sync-wordpress-seo-29-0-r-vx6k.yoast-developer.pages.dev |
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.
RC docs sync — 29.0-RC3
Product: wordpress-seo
Area: sitemaps
Source evidence:
inc/sitemaps/class-sitemaps.php:96— new publicWPSEO_Sitemaps::register_css( $name, $building_function, $rewrite = '' )method, lets add-ons register a CSS stylesheet for a custom sitemap typeinc/sitemaps/class-sitemaps.php:171—WPSEO_Sitemaps::register_xsl()marked@deprecated 29.0, now calls_deprecated_function()pointing toregister_cssinc/sitemaps/class-sitemaps.php:143—WPSEO_Sitemaps::xsl_output()marked@deprecated 29.0, now calls_deprecated_function()pointing tocss_outputinc/sitemaps/class-sitemaps-renderer.php:16— newapply_filters( 'wpseo_stylesheet_url', $this->stylesheet )filter on the main sitemap's XML-stylesheet processing instructioninc/sitemaps/class-sitemaps.php:204— newdo_action( 'wpseo_css_' . $type )replaces the deprecatedwpseo_xsl_<type>action for non-main CSS stylesheet outputChanges in this PR
docs/features/xml-sitemaps/api.md— adds a new Stylesheet section documentingWPSEO_Sitemaps::register_css(), thewpseo_stylesheet_urlfilter, and a deprecation notice forregister_xsl()/wpseo_xsl_<type>Verification
yarn buildpasses locally in this workflow.yarn lintclean for files touched by this PR.Reviewer notes
wpseo_stylesheet_urlPHPDoc in source says@param string $stylesheet Stylesheet URL, but the actual value is a full XML-stylesheet processing instruction string (e.g.<?xml-stylesheet type="text/css" href="..."?>). We documented it as "Full XML-stylesheet processing instruction" to be accurate. If the source team prefers different terminology, please adjust.WPSEO_Sitemaps::xsl_output()andWPSEO_Sitemaps::register_xsl()were not previously documented in this portal, so no deprecation entry is needed in a deprecations page — only the inline deprecation notice in the new section.Authored by the RC docs-sync agent. Not auto-merged — requires human review. Run: https://github.com/Yoast/developer/actions/runs/44686765708
🤖 Generated with Claude Code