[wp-trac] [WordPress Trac] #33924: sanitize_html_class valid characters
WordPress Trac
noreply at wordpress.org
Sun Dec 13 22:23:06 UTC 2015
#33924: sanitize_html_class valid characters
-------------------------------------------------+-------------------------
Reporter: m-e-h | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future
Component: Formatting | Release
Severity: normal | Version: 4.4
Keywords: has-patch 2nd-opinion has-unit- | Resolution:
tests | Focuses:
-------------------------------------------------+-------------------------
Comment (by peterwilsoncc):
Replying to [comment:12 jamesrandom]:
> I think permissive mode should allow spaces. This enables multiple
classes to be applied.
That would turn the function into an `esc_attr` alias with a fallback. As
the function name uses the singular - html class - and the way it is
applied in `post_class` and `body_class`, I'm -1 on allowing multiple
classes.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33924#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list