Changes between Initial Version and Version 16 of Ticket #64609
- Timestamp:
- 03/02/2026 12:57:53 PM (7 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #64609
- Property Keywords has-patch has-unit-tests added
-
Property
Status
changed from
assignedtoclosed -
Property
Resolution
changed from
tofixed -
Property
Summary
changed from
HTML API: set_modifiable_text() ignores leading newlines in PRE, LISTING, TEXTAREAtoHTML API: set_modifiable_text() ignores leading newlines in TEXTAREA
-
Ticket #64609 – Description
initial v16 1 The `::set_modifiable_text()` method on `WP_HTML_Tag_Processor` and `WP_HTML_Processor` will fail to include a leading newline in the provided plaintext content on the first text of `TEXTAREA` , `PRE`, and `LISTING`elements.1 The `::set_modifiable_text()` method on `WP_HTML_Tag_Processor` and `WP_HTML_Processor` will fail to include a leading newline in the provided plaintext content on the first text of `TEXTAREA` elements. 2 2 3 This is due to special rules for theseelements that cause a single leading newline to be ignored immediately following the open tag.3 This is due to special rules for `TEXTAREA` elements that cause a single leading newline to be ignored immediately following the open tag. 4 4 5 5 {{{#!php