[wp-trac] [WordPress Trac] #40960: Widgets: The Text widget should respect the “Disable the visual editor when writing” setting
WordPress Trac
noreply at wordpress.org
Thu Jul 6 06:41:04 UTC 2017
#40960: Widgets: The Text widget should respect the “Disable the visual editor when
writing” setting
-----------------------------------+-----------------------
Reporter: westonruter | Owner: azaozz
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 4.8.1
Component: Widgets | Version: 4.8
Severity: critical | Resolution:
Keywords: has-patch fixed-major | Focuses:
-----------------------------------+-----------------------
Comment (by dfterry):
Replying to [comment:44 westonruter]:
> Replying to [comment:42 dfterry]:
> > Replying to [comment:39 westonruter]:
> > > (including if there are line breaks and the auto-paragraphing
checkbox was unchecked),
> >
> > What if auto paragraphing was disabled in a function and the checkbox
does not match?
>
> How would a function do this? The legacy mode detection in the
[https://github.com/xwp/wordpress-develop/pull/235/files patch] is
currently looking for whether the checkbox was checked and whether there
are line breaks in the widget's text:
This disables I believe.
{{{#!php
<?php
remove_filter('widget_text_content', 'wpautop');
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40960#comment:45>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list