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

WordPress Trac noreply at wordpress.org
Mon Jul 17 18:58:47 UTC 2017


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

Comment (by FolioVision):

 @westonruter Thanks for your note. I've gone back to the referenced post
 for the pertinent sections.

 > This will not have the desired effect for some advanced users because it
 will change the widget's ID that contains the content, and this will break
 CSS selectors that target the widget. It can also have negative impacts
 for plugins that have existing references to Text widget IDs for placement
 in contexts outside normal dynamic_sidebar() calls.

 So why not then just keep the Widget ID for the converted widget.

 > Even for non-advanced users, migrating existing Text widgets over to
 HTML Code widgets is not ideal because then novice users, who may not know
 HTML to begin with, will have difficulty locating the widget that has the
 content they need to modify. Seeing the word “HTML” may also confuse and
 intimidate them.

 Wow. How the mighty have fallen. When the word HTML confuses WordPress
 site admins we've completely lost the thread (quick reminder, WordPress is
 used to build websites, websites are based on HTML). So from a developer
 friendly platform, we are breaking people's sites and building breaking
 upgrades so no one with a fancy existing HTML widget has to see the word
 HTML.

 This seems very, very wrong to me. What am I missing?

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


More information about the wp-trac mailing list