[wp-trac] [WordPress Trac] #34178: Text Widget accept only inline style tag
WordPress Trac
noreply at wordpress.org
Tue Oct 6 22:39:47 UTC 2015
#34178: Text Widget accept only inline style tag
-----------------------------+-----------------------------
Reporter: miguelmuller | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version:
Severity: normal | Keywords:
Focuses: |
-----------------------------+-----------------------------
Recently a user added an style tag inside of a text widget that changed
the header of the site. That way he changed the style of an object that
was unrelated to the widget. Segue o exemplo:
{{{
<div class="textwidget"><style>
header {
background-image: url(IMAGE-URL)!important;
background-repeat: no-repeat !important;
}
</style></div>
}}}
I suggest that the text widget accepted only inline style tags, as in
example:
{{{
<div class="textwidget">
<h1 style="color:blue;margin-left:30px;">This is a heading.</h1>
</div>
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34178>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list