[wp-trac] [WordPress Trac] #57002: safecss_filter_attr() removes the trailing semincolon
WordPress Trac
noreply at wordpress.org
Fri Nov 4 15:19:25 UTC 2022
#57002: safecss_filter_attr() removes the trailing semincolon
--------------------------+-----------------------------
Reporter: Chouby | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version: 2.8.1
Severity: trivial | Keywords:
Focuses: css |
--------------------------+-----------------------------
A trailing semicolon is not mandatory at the end of CSS rules. It's
however a best practice to add one.
However the output of `safecss_filter_attr( 'margin-right: 20px;' )` is
`margin-right: 20px`. I would expect that it keeps `margin-right: 20px`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57002>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list