Skip to content

Document wptexturize() behavior in punctuation README - #31

Merged
estelaris merged 1 commit into
WordPress:mainfrom
j111q:docs/wptexturize-punctuation-note
Apr 7, 2026
Merged

estelaris merged 1 commit into
WordPress:mainfrom
j111q:docs/wptexturize-punctuation-note

Conversation

@j111q

@j111q j111q commented Apr 7, 2026 •

Copy link
Copy Markdown
Contributor

I realised that there was a gap between what's recommended in the style guide vs. what's actually rendered in WordPress.

What changed

Adds a clarifying note to the punctuation section README explaining that WordPress core's wptexturize() function automatically transforms certain source punctuation into typographic equivalents in rendered post content.

Why

The current punctuation guidance recommends straight characters (apostrophes, quotation marks, etc.) but doesn't mention that wptexturize() converts them to typographic equivalents in post titles, content, excerpts, and comments. This can be confusing for contributors who follow the style guide and then see different characters rendered to readers. The note adds context without changing any of the existing recommendations.

Visual impact

N/A — documentation-only change.

Adds a clarifying note explaining that WordPress core automatically
transforms certain source punctuation into typographic equivalents
in rendered post content via wptexturize(). This addresses a gap
where the style guide's recommendations apply to source text but
do not mention how that text is transformed when rendered.
@estelaris
estelaris merged commit c5bcce7 into WordPress:main Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants