[wp-trac] [WordPress Trac] #34406: wp_kses_hair is too stringent redux
WordPress Trac
noreply at wordpress.org
Sat Oct 24 00:30:09 UTC 2015
#34406: wp_kses_hair is too stringent redux
-------------------------------------------------+-------------------------
Reporter: travisnorthcutt | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
Component: Formatting | Review
Severity: normal | Version: 1.5
Keywords: has-patch dev-feedback needs-unit- | Resolution:
tests | Focuses:
-------------------------------------------------+-------------------------
Comment (by travisnorthcutt):
Replying to [comment:6 miqrogroove]:
> Try it in the post editor. Because wp_kses itself doesn't handle
shortcodes, there will be some unexpected behaviors without more test
coverage here.
Without my patch applied, `<img alt="[audio]" />` in the (text tab of the)
post editor results in `<img alt="" />` being output.
With my patch applied, `<img alt="[audio]" />` in the (text tab of the)
post editor results in `<img alt="" />` being output.
My patch only affects parsing of attribute ''names'', not attribute
''values'', so I don't see how shortcodes in attribute values should be
relevant here. I'm happy to change my mind, of course :).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34406#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list