Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
sirreal
wordpress-develop
Repository navigation
Code
Issues
2
(2)
Pull requests
49
(49)
Actions
Projects
Security and quality
Insights
More
items
HTML Templating
- #23
#23
Open
sirreal
wants to merge 89 commits into
trunk
sirreal/wordpress-develop:trunk
from
html-
api/
add-
html-
templating
sirreal/wordpress-develop:html-api/add-html-templating
Copy head branch name to clipboard
Conversation
Commits
89
(89)
Checks
Files changed
Open
HTML Templating
#23
sirreal
wants to merge 89 commits into
trunk
sirreal/wordpress-develop:trunk
from
html-
api/
add-
html-
templating
sirreal/wordpress-develop:html-api/add-html-templating
Copy head branch name to clipboard
Commits
Commits on Feb 9, 2026
First sketching on templates
sirreal
committed
957a3e8
View commit details
Copy full SHA for 957a3e8
Browse repository at this point
DROPME: Collect examples
sirreal
committed
afc63eb
View commit details
Copy full SHA for afc63eb
Browse repository at this point
Introduce test suite based on existing examples
sirreal
committed
75ecbe7
View commit details
Copy full SHA for 75ecbe7
Browse repository at this point
yield + nowdoc
sirreal
committed
52836b9
View commit details
Copy full SHA for 52836b9
Browse repository at this point
lints
sirreal
committed
07a42d5
View commit details
Copy full SHA for 07a42d5
Browse repository at this point
test tweaks
sirreal
committed
336524f
View commit details
Copy full SHA for 336524f
Browse repository at this point
Fix numeric array indexes
sirreal
committed
c1a9050
View commit details
Copy full SHA for c1a9050
Browse repository at this point
Add test for HTML that could produce a tag after modification
sirreal
committed
978d835
View commit details
Copy full SHA for 978d835
Browse repository at this point
Add test to prevent attribute mis-interpretation after replacement
sirreal
committed
81f731e
View commit details
Copy full SHA for 81f731e
Browse repository at this point
Move serialize_token to tag processor class (for normalization of text nodes)
sirreal
committed
cdedfb7
View commit details
Copy full SHA for cdedfb7
Browse repository at this point
Add attribute behavior testing
sirreal
committed
e8f420c
View commit details
Copy full SHA for e8f420c
Browse repository at this point
working proof-of-concept
sirreal
committed
75cf458
View commit details
Copy full SHA for 75cf458
Browse repository at this point
class cleanup and lints
sirreal
committed
bf7f038
View commit details
Copy full SHA for bf7f038
Browse repository at this point
Add message on disallowed type
sirreal
committed
df9deab
View commit details
Copy full SHA for df9deab
Browse repository at this point
Cleanup test + lints
sirreal
committed
5a9cb43
View commit details
Copy full SHA for 5a9cb43
Browse repository at this point
Add multiple template tests
sirreal
committed
f30d721
View commit details
Copy full SHA for f30d721
Browse repository at this point
Improve test names and specificity
sirreal
committed
63fa332
View commit details
Copy full SHA for 63fa332
Browse repository at this point
Improve test structure and names
sirreal
committed
a451ed4
View commit details
Copy full SHA for a451ed4
Browse repository at this point
Refactor WP_HTML_Template to use composition over inheritance
Show description for 48ff319
sirreal
committed
48ff319
View commit details
Copy full SHA for 48ff319
Browse repository at this point
Remove unused preg_attribute_replace_callback method from WP_HTML_Template
sirreal
committed
e04d7c0
View commit details
Copy full SHA for e04d7c0
Browse repository at this point
Add more tests
sirreal
committed
65f62a9
View commit details
Copy full SHA for 65f62a9
Browse repository at this point
lints
sirreal
committed
5d58abf
View commit details
Copy full SHA for 5d58abf
Browse repository at this point
Rework interface
sirreal
committed
d57d0c4
View commit details
Copy full SHA for d57d0c4
Browse repository at this point
Update tests for new API
sirreal
committed
bd8740e
View commit details
Copy full SHA for bd8740e
Browse repository at this point
Add placeholder compilation skeleton to WP_HTML_Template
Show description for 4eaf11d
sirreal
committed
4eaf11d
View commit details
Copy full SHA for 4eaf11d
Browse repository at this point
Implement text placeholder extraction in compile()
Show description for 8229efa
sirreal
committed
8229efa
View commit details
Copy full SHA for 8229efa
Browse repository at this point
Add attribute placeholder extraction with context promotion
Show description for ca24391
sirreal
committed
ca24391
View commit details
Copy full SHA for ca24391
Browse repository at this point
Add validation warnings to bind()
Show description for 49978d4
sirreal
committed
49978d4
View commit details
Copy full SHA for 49978d4
Browse repository at this point
Refactor render() to use compiled placeholder data
Show description for d56435e
sirreal
committed
d56435e
View commit details
Copy full SHA for d56435e
Browse repository at this point
Fix attribute text escaping and add trailing segment handling
Show description for 2b4bf1a
sirreal
committed
2b4bf1a
View commit details
Copy full SHA for 2b4bf1a
Browse repository at this point
Revert "Move serialize_token to tag processor class (for normalization of text nodes)"
Show description for f5f272d
sirreal
committed
f5f272d
View commit details
Copy full SHA for f5f272d
Browse repository at this point
Switch to use HTML Processor
sirreal
committed
11ab281
View commit details
Copy full SHA for 11ab281
Browse repository at this point
Use assertEqualHTML in tests
sirreal
committed
06a28c6
View commit details
Copy full SHA for 06a28c6
Browse repository at this point
Add newline in PRE tests
sirreal
committed
5862ee4
View commit details
Copy full SHA for 5862ee4
Browse repository at this point
Update PRE leading newline test
sirreal
committed
0bda31b
View commit details
Copy full SHA for 0bda31b
Browse repository at this point
Add more test cases
sirreal
committed
d99bb22
View commit details
Copy full SHA for d99bb22
Browse repository at this point
Remove special handling for PRE, LISTING tags
sirreal
committed
b89a3ff
View commit details
Copy full SHA for b89a3ff
Browse repository at this point
Test tweaks and notes
sirreal
committed
2fcc211
View commit details
Copy full SHA for 2fcc211
Browse repository at this point
HTML API: Add $edits and $placeholder_names properties to WP_HTML_Template
Show description for 3e2757f
sirreal
committed
3e2757f
View commit details
Copy full SHA for 3e2757f
Browse repository at this point
HTML API: Populate $edits with text normalizations during compile
Show description for 45c01dd
sirreal
committed
45c01dd
View commit details
Copy full SHA for 45c01dd
Browse repository at this point
HTML API: Populate $edits with text placeholders during compile
Show description for b316285
sirreal
committed
b316285
View commit details
Copy full SHA for b316285
Browse repository at this point
HTML API: Pre-compute attribute escapes at compile time
Show description for 9d15dfa
sirreal
committed
9d15dfa
View commit details
Copy full SHA for 9d15dfa
Browse repository at this point
HTML API: Populate $edits with attribute placeholders during compile
Show description for 75f0d95
sirreal
committed
75f0d95
View commit details
Copy full SHA for 75f0d95
Browse repository at this point
HTML API: Refactor render() to use unified $edits array
Show description for 18c925c
sirreal
committed
18c925c
View commit details
Copy full SHA for 18c925c
Browse repository at this point
HTML API: Refactor bind() to use $placeholder_names for validation
Show description for 13323b3
sirreal
committed
13323b3
View commit details
Copy full SHA for 13323b3
Browse repository at this point
HTML API: Remove legacy $text_normalizations and $attr_escapes arrays
Show description for 7747f6d
sirreal
committed
7747f6d
View commit details
Copy full SHA for 7747f6d
Browse repository at this point
HTML API: Add TODO for future $compiled removal
Show description for fc75174
sirreal
committed
fc75174
View commit details
Copy full SHA for fc75174
Browse repository at this point
HTML API: Fix code style issues in WP_HTML_Template
Show description for 12b1f63
sirreal
committed
12b1f63
View commit details
Copy full SHA for 12b1f63
Browse repository at this point
HTML API: Remove redundant $compiled variable from WP_HTML_Template
Show description for 8160d60
sirreal
committed
8160d60
View commit details
Copy full SHA for 8160d60
Browse repository at this point
lints
sirreal
committed
03e6104
View commit details
Copy full SHA for 03e6104
Browse repository at this point
Document $replacements
sirreal
committed
c275c86
View commit details
Copy full SHA for c275c86
Browse repository at this point
Use WP_HTML_Text_Replacement class
sirreal
committed
d6c1c24
View commit details
Copy full SHA for d6c1c24
Browse repository at this point
Rely on HTML API text replacement
sirreal
committed
14d5df9
View commit details
Copy full SHA for 14d5df9
Browse repository at this point
Tests: Refactor static text escaping test to use data provider
Show description for fa9d84e
sirreal
committed
fa9d84e
View commit details
Copy full SHA for fa9d84e
Browse repository at this point
Remove dangling docblock
sirreal
committed
26a4532
View commit details
Copy full SHA for 26a4532
Browse repository at this point
Remove is_compiled (derive)
sirreal
committed
6ec99ea
View commit details
Copy full SHA for 6ec99ea
Browse repository at this point
Add replacement warning test
sirreal
committed
73ff19e
View commit details
Copy full SHA for 73ff19e
Browse repository at this point
Commits on Feb 10, 2026
remove get_placeholders
sirreal
committed
51640e6
View commit details
Copy full SHA for 51640e6
Browse repository at this point
Drop numeric placeholders / list replacements
sirreal
committed
ee24adc
View commit details
Copy full SHA for ee24adc
Browse repository at this point
Tests: Add coverage for invalid replacement type rejection
Show description for 7187586
sirreal
committed
7187586
View commit details
Copy full SHA for 7187586
Browse repository at this point
Add status assessment
sirreal
committed
a8ca49d
View commit details
Copy full SHA for a8ca49d
Browse repository at this point
Add multiple placeholder tests
sirreal
committed
7cb1f74
View commit details
Copy full SHA for 7cb1f74
Browse repository at this point
Add more attribute tests, multiple attributes
sirreal
committed
623e938
View commit details
Copy full SHA for 623e938
Browse repository at this point
Update status
sirreal
committed
9c3ee7d
View commit details
Copy full SHA for 9c3ee7d
Browse repository at this point
Add boolean attribute support to WP_HTML_Template
Show description for 0e81466
sirreal
committed
0e81466
View commit details
Copy full SHA for 0e81466
Browse repository at this point
update status
sirreal
committed
e8eb681
View commit details
Copy full SHA for e8eb681
Browse repository at this point
Update status with table details
sirreal
committed
a0208e5
View commit details
Copy full SHA for a0208e5
Browse repository at this point
Add failing test for table row template support
Show description for aea5e82
sirreal
committed
aea5e82
View commit details
Copy full SHA for aea5e82
Browse repository at this point
Expose create_fragment_at_current_node via anonymous class
Show description for cc36283
sirreal
committed
cc36283
View commit details
Copy full SHA for cc36283
Browse repository at this point
Add detect_context() for table template detection
Show description for a098815
sirreal
committed
a098815
View commit details
Copy full SHA for a098815
Browse repository at this point
Commits on Feb 11, 2026
Add duplicate attribute issue to status
sirreal
committed
1879747
View commit details
Copy full SHA for 1879747
Browse repository at this point
Add failing tests for duplicate attribute removal bug
Show description for 245f24a
sirreal
committed
245f24a
View commit details
Copy full SHA for 245f24a
Browse repository at this point
Fix duplicate attribute removal in WP_HTML_Template
Show description for 04b4c81
sirreal
committed
04b4c81
View commit details
Copy full SHA for 04b4c81
Browse repository at this point
Update status about fixed duplicate attributes
sirreal
committed
4d32d0f
View commit details
Copy full SHA for 4d32d0f
Browse repository at this point
Status update - method visibility
sirreal
committed
2d1dd47
View commit details
Copy full SHA for 2d1dd47
Browse repository at this point
Commits on Mar 4, 2026
Merge branch 'trunk' into html-api/add-html-templating
sirreal
committed
cdc90b0
View commit details
Copy full SHA for cdc90b0
Browse repository at this point
lints
sirreal
committed
2eb0144
View commit details
Copy full SHA for 2eb0144
Browse repository at this point
un-skip some supported tests
sirreal
committed
dc88ebf
View commit details
Copy full SHA for dc88ebf
Browse repository at this point
Redesign WP_HTML_Template API for table context support
Show description for e2a0f15
sirreal
committed
e2a0f15
View commit details
Copy full SHA for e2a0f15
Browse repository at this point
7.1.0
sirreal
committed
0b5efd8
View commit details
Copy full SHA for 0b5efd8
Browse repository at this point
Translate doing it wrong messages
sirreal
committed
1db17e0
View commit details
Copy full SHA for 1db17e0
Browse repository at this point
Extract escape map
sirreal
committed
6cceb11
View commit details
Copy full SHA for 6cceb11
Browse repository at this point
Add test for `<a><a>` replacement nesting
sirreal
committed
0107222
View commit details
Copy full SHA for 0107222
Browse repository at this point
lints
sirreal
committed
b55a6a8
View commit details
Copy full SHA for b55a6a8
Browse repository at this point
Remove tag processor visibility changes
sirreal
committed
9e790aa
View commit details
Copy full SHA for 9e790aa
Browse repository at this point
Commits on Mar 9, 2026
clean up too-modern syntax
sirreal
committed
199d1cf
View commit details
Copy full SHA for 199d1cf
Browse repository at this point
Commits on Mar 10, 2026
cleanup
sirreal
committed
031d16c
View commit details
Copy full SHA for 031d16c
Browse repository at this point
Commits on Apr 1, 2026
Merge branch 'trunk' into html-api/add-html-templating
sirreal
committed
b0e14c9
View commit details
Copy full SHA for b0e14c9
Browse repository at this point
Merge branch 'trunk' into html-api/add-html-templating
sirreal
committed
68da10b
View commit details
Copy full SHA for 68da10b
Browse repository at this point
You can’t perform that action at this time.