Skip to content

Social Link: Fix stray closing tag in Tumblr icon markup - #80257

Merged
obenland merged 1 commit into
WordPress:trunkfrom
obenland:fix/tumblr-social-icon-stray-path-tag
Jul 14, 2026
Merged

Social Link: Fix stray closing tag in Tumblr icon markup#80257
obenland merged 1 commit into
WordPress:trunkfrom
obenland:fix/tumblr-social-icon-stray-path-tag

Conversation

@obenland

Copy link
Copy Markdown
Member

What?

The server-side Tumblr icon SVG in block_core_social_link_services() closes its <path> element twice — once with a self-closing /> and again with an explicit </path>:

<path d="…v3.75z" /></path>

This removes the redundant self-closing slash so the element is closed exactly once.

Why?

<path … /></path> produces a stray </path> end tag, which is invalid HTML and throws a W3C validation error ("Stray end tag path") on every front-end render of a Social Links block that includes the Tumblr service — for example, the global footer on make.wordpress.org.

Note the JSX icon (icons/tumblr.js) is already valid; only the hand-written PHP SVG string used for server rendering carries the typo, so the editor looks fine while the front end emits invalid markup.

Reported downstream at https://meta.trac.wordpress.org/ticket/8317.

How?

Drops the / from the Tumblr <path> so it closes only via </path>, matching the convention used by the other 39 icons in this file.

Before:

<path d="…h1.73v3.75z" /></path></svg>

After:

<path d="…h1.73v3.75z"></path></svg>

Testing Instructions

  1. Add a Social Links block and include the Tumblr service (or view any page rendering one, e.g. a site's footer).
  2. View the rendered page source on the front end.
  3. Confirm the Tumblr icon outputs <path … ></path> with no stray </path>.
  4. Run the output through the W3C validator and confirm the "Stray end tag path" error for the Tumblr icon is gone.

Screenshots or screencast

N/A — markup-only change; the rendered icon is visually identical.

🤖 Generated with Claude Code

https://claude.ai/code/session_01V4aw9XgpM7VnE6WQ7ci6ff

The server-side Tumblr icon SVG string closed its `<path>` element twice:
once with the self-closing `/>` and again with an explicit `</path>`. This
produced `<path … /></path>`, which throws a W3C "Stray end tag path"
validation error on every rendered Social Links block (e.g. the global
footer on make.wordpress.org).

Remove the redundant self-closing slash so the element is closed once via
`</path>`, matching the convention used by the other icons in this file.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V4aw9XgpM7VnE6WQ7ci6ff
@obenland
obenland requested a review from ajitbohra as a code owner July 14, 2026 16:11
Copilot AI review requested due to automatic review settings July 14, 2026 16:11
@obenland
obenland requested a review from fabiankaegy as a code owner July 14, 2026 16:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Mamaduka Mamaduka added [Type] Bug An existing feature does not function as intended [Block] Social Affects the Social Block - used to display Social Media accounts labels Jul 14, 2026

@Mamaduka Mamaduka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, @obenland!

@github-actions github-actions Bot added the [Package] Block library /packages/block-library label Jul 14, 2026
@obenland
obenland merged commit 7ab4cfc into WordPress:trunk Jul 14, 2026
52 of 53 checks passed
@github-actions github-actions Bot added this to the Gutenberg 23.7 milestone Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Block] Social Affects the Social Block - used to display Social Media accounts [Package] Block library /packages/block-library [Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Sponsor
SponsoredKunjungi sekarang
Promo