[wp-trac] [WordPress Trac] #40993: WordPress is auto-generating a line break in my widgets (was: Wordpress is auto-generating a line break in my widgets)
WordPress Trac
noreply at wordpress.org
Tue Jun 20 11:49:05 UTC 2017
#40993: WordPress is auto-generating a line break in my widgets
--------------------------+-----------------------
Reporter: sandduner350 | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone:
Component: Widgets | Version: 4.8
Severity: major | Resolution:
Keywords: 2nd-opinion | Focuses:
--------------------------+-----------------------
Changes (by bobbingwide):
* keywords: => 2nd-opinion
* status: closed => reopened
* resolution: duplicate =>
* severity: normal => major
Comment:
In my opinion this is a separate issue from #40951.
It is associated with running wpautop() against the content to generate
breaks.
In my scenario the text widget contains a simple shortcode:
{{{
[add_to_cart id=101]
}}}
Once the shortcode has been expanded the HTML gets mangled by wpautop and
the resulting output is incorrectly styled.
Using the add-paragraphs-option-to-text-widget plugin, which re-introduces
the capability of setting the `filter` field to false, gives the desired
results.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40993#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list