[wp-trac] [WordPress Trac] #46597: Grid properties stripped from style attribute after saving post
WordPress Trac
noreply at wordpress.org
Thu Mar 21 23:55:11 UTC 2019
#46597: Grid properties stripped from style attribute after saving post
--------------------------+-----------------------------
Reporter: ryelle | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
When resizing a Media and Text block, something like `style="grid-
template-columns:9% auto"` is added to the rendered markup. If you're not
admin (don't have unfiltered_html?), this is stripped by saving (in
`safecss_filter_attr`, I think), which then causes the block to not match
and appear "invalid".
This can also be reproduced with plain content, using the HTML block:
1. Use an "author" level user
2. Add an HTML block
3. Add the content `<div style="grid-template-columns:9%
auto">Testing</div>`
4. Save the post and reload the page
5. The style attribute has been stripped
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46597>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list