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

WordPress Trac noreply at wordpress.org
Tue Jun 13 00:44:43 UTC 2017


#40951: New Text Widget - Switching Between Visual/Text Editor Strips Out Code
--------------------------+-----------------------
 Reporter:  dwrippe       |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  4.8.1
Component:  Widgets       |     Version:  4.8
 Severity:  minor         |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+-----------------------
Changes (by FolioVision):

 * status:  closed => reopened
 * resolution:  invalid =>


Comment:

 Replying to [comment:35 icodina]:
 > For those of us who use the text widget with HTML, JS or PHP code:
 > In order to copy and transfer the HTML, JS or PHP code to another widget
 or plugin, before editing, rename and replace the class php file of the
 widget (wp-includes/widgets/class-wp-widget-text.php) with the version
 prior to 4.8
 > This works correctly

 And why pray tell can we not do this automatically and without causing
 pain to millions of publishers and site administrators all over the world
 as suggested above by @carasmo and @And_or. I've read Carasamo's
 [https://christinacreativedesign.com/how-to-bulk-replace-the-4-8
 -wordpress-text-widget-with-the-classic-text-widget/ link to
 christinecreativedesign.com]. Very painful. Fairly confusing. Generally
 unpleasant.

 Breaking publishers' sites is incredibly arrogant. Why do WordPress Core
 and Jetpack think this is kind of behaviour (breaking what is not yours)
 is okay?

 Let's just fix this automatically so people can get on with their lives
 and ''publishing'', rather than fighting the tools.

 Thanks, Alec

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


More information about the wp-trac mailing list