[wp-trac] [WordPress Trac] #46335: Custom HTML Issues
WordPress Trac
noreply at wordpress.org
Wed Mar 6 00:25:36 UTC 2019
#46335: Custom HTML Issues
------------------------------------+-------------------------
Reporter: swagatam1975 | Owner: audrasjb
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 5.1.1
Component: Widgets | Version: 5.1
Severity: normal | Resolution:
Keywords: has-patch dev-feedback | Focuses: javascript
------------------------------------+-------------------------
Comment (by westonruter):
Taking another look at this, see there is this comment before the code in
question:
{{{#!js
/*
* Prevent updating content when the editor is focused or if there are
current error annotations,
* to prevent the editor's contents from getting sanitized as soon as a
user removes focus from
* the editor. This is particularly important for users who cannot
unfiltered_html.
*/
}}}
Make sure that editing the HTML is tested when the user does not have
`unfiltered_html`. When testing, try adding a `<script>` and see what
happens, particularly in the Customizer.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46335#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list