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

WordPress Trac noreply at wordpress.org
Wed Jul 5 00:17:05 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 westonruter):

 And [attachment:40951.5.diff] ([https://github.com/xwp/wordpress-
 develop/pull/235/commits/6e6b53df1f5ccdcc009682dcc9166c88d8c2c56d commit])
 is the complimentary change to [https://github.com/xwp/wordpress-
 develop/pull/235/files/d8cfffb..beb1c76 the previous] in that it
 temporarily upgrades shortcode handling from applying at `widget_text` to
 instead apply at `widget_text_content` after `wpautop` has already run, so
 that any HTML output by the shortcode won't be corrupted.

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


More information about the wp-trac mailing list