[wp-trac] [WordPress Trac] #40951: New Text Widget - Switching Between Visual/Text Editor Strips Out Code

WordPress Trac noreply at wordpress.org
Fri Jul 14 02:46:48 UTC 2017


#40951: New Text Widget - Switching Between Visual/Text Editor Strips Out Code
-------------------------------------------------+-------------------------
 Reporter:  dwrippe                              |       Owner:
     Type:  defect (bug)                         |  westonruter
 Priority:  normal                               |      Status:  accepted
Component:  Widgets                              |   Milestone:  4.8.1
 Severity:  major                                |     Version:  4.8
 Keywords:  needs-testing has-unit-tests has-    |  Resolution:
  patch                                          |     Focuses:
-------------------------------------------------+-------------------------

Comment (by dougal):

 Just did some testing and everything seemed to behave as expected:
 * Set up WP 4.7 and created text widgets with html content known to have
 problems in 4.8.0.
 * Upgraded to `trac-40951` branch. Text widgets gave the legacy mode
 warning, but still rendered "correctly" (old behavior)
 * Tried toggling "Automatically add paragraphs", re-saving, reviewing.
 Behaved as expected (same as in 4.7). Toggling back off and re-saving
 restored desired rendering.
 * Creating a new text widget and pasting in the identical content did not
 trigger legacy mode. The `wpautop` filter was applied, giving "broken"
 rendering (relative to 4.7), as expected.
 * Pasting HTML into the WYSIWYG tab triggered friendly warning that I
 probably wanted the Text tab.

 Thumbs-up from me.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40951#comment:131>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list