[wp-trac] [WordPress Trac] #63854: Handle a non-string passed to WP_HTML_Tag_Processor gracefully
WordPress Trac
noreply at wordpress.org
Thu Aug 21 13:57:27 UTC 2025
#63854: Handle a non-string passed to WP_HTML_Tag_Processor gracefully
--------------------------------------+---------------------
Reporter: kraftbj | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.9
Component: HTML API | Version: 6.2
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+---------------------
Comment (by jonsurrell):
The change seems like a good direction.
I think `WP_HTML_Processor::create_fragment()` and
`WP_HTML_Processor::create_full_parser()` are also susceptible. Those can
also `_doing_it_wrong()`, but they're simpler in that they can return
`null`. Do you mind including that in your PR?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63854#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list