Skip to content

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
mainfrom
rc-sync/wordpress-seo/29.0-RC3/sitemaps
Open

claude[bot] wants to merge 1 commit into
mainfrom
rc-sync/wordpress-seo/29.0-RC3/sitemaps

Conversation

@claude

@claude claude Bot commented Nov 20, 2026

Copy link
Copy Markdown

RC docs sync — 29.0-RC3

Product: wordpress-seo
Area: sitemaps
Source evidence:

  • inc/sitemaps/class-sitemaps.php:96 — new public WPSEO_Sitemaps::register_css( $name, $building_function, $rewrite = '' ) method, lets add-ons register a CSS stylesheet for a custom sitemap type
  • inc/sitemaps/class-sitemaps.php:171 — WPSEO_Sitemaps::register_xsl() marked @deprecated 29.0, now calls _deprecated_function() pointing to register_css
  • inc/sitemaps/class-sitemaps.php:143 — WPSEO_Sitemaps::xsl_output() marked @deprecated 29.0, now calls _deprecated_function() pointing to css_output
  • inc/sitemaps/class-sitemaps-renderer.php:16 — new apply_filters( 'wpseo_stylesheet_url', $this->stylesheet ) filter on the main sitemap's XML-stylesheet processing instruction
  • inc/sitemaps/class-sitemaps.php:204 — new do_action( 'wpseo_css_' . $type ) replaces the deprecated wpseo_xsl_<type> action for non-main CSS stylesheet output

Changes in this PR

  • docs/features/xml-sitemaps/api.md — adds a new Stylesheet section documenting WPSEO_Sitemaps::register_css(), the wpseo_stylesheet_url filter, and a deprecation notice for register_xsl() / wpseo_xsl_<type>

Verification

  • yarn build passes locally in this workflow.
  • yarn lint clean for files touched by this PR.

Reviewer notes

  • The wpseo_stylesheet_url PHPDoc 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() and WPSEO_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

…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>
@claude claude Bot added rc-doc-sync RC documentation sync PR product/wordpress-seo Related to Yoast SEO for WordPress area/sitemaps Related to XML sitemaps feature rc/29.0-RC3 RC docs sync for 29.0-RC3 labels Nov 20, 2026
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying yoast-developer with  Cloudflare Pages  Cloudflare Pages

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

View logs

@enricobattocchi enricobattocchi self-assigned this Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/sitemaps Related to XML sitemaps feature product/wordpress-seo Related to Yoast SEO for WordPress rc/29.0-RC3 RC docs sync for 29.0-RC3 rc-doc-sync RC documentation sync PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant