Opened 20 months ago
Closed 20 months ago
#18765 closed defect (bug) (fixed)
tag_escape() should not strip digits
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.3 |
| Component: | Formatting | Version: | 3.2.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
tag_escape() strips digits, but it shouldn't - they are needed for <h1>..<h6> tags. Attached patch fixes this.
Attachments (1)
Change History (5)
comment:1
SergeyBiryukov — 20 months ago
- Milestone changed from Awaiting Review to 3.3
Tested using revision 18784M and above formatting.php.diff. It works.
Realistically, 1-6 is the only required range. I haven't seen any specs for introducing more header tags. Unless, I guess, they're allowed in namespaced elements. Looks good.
Note: See
TracTickets for help on using
tickets.

tag_escape() is only used in gallery_shortcode(), so the bug manifests if someone sets itemtag or captiontag attribute to one of the <h1>..<h6> tags. This seems like a rare situation, but still possible.