[wp-trac] [WordPress Trac] #15060: Removing title on widget doesn't modify in-widget-title span

WordPress Trac wp-trac at lists.automattic.com
Thu Oct 7 17:09:22 UTC 2010


#15060: Removing title on widget doesn't modify in-widget-title span
--------------------------+-------------------------------------------------
 Reporter:  chrisbliss18  |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Widgets       |     Version:                 
 Severity:  normal        |    Keywords:  has-patch      
--------------------------+-------------------------------------------------
 In the widget editor, widgets with titles have this title shown in the
 widget editor container title. For example:

 {{{
 Text: Sample Widget
 }}}

 When a widget is first modified and saved, adding a title will cause this
 widget editor container title to update via JS to reflect the title
 update. Subsequent modifications of the title will also be reflected.
 However, if the title is removed, the previous title will remain.

 Looking at the code shows that the in-widget-title span that holds this
 widget editor container title is only updated if the title value is not
 empty. This is easily tested by adding a Text widget, giving it a title,
 clicking Save, confirming that the title is reflected in the container,
 removing the title, and clicking Save again.

 The supplied patch modifies the JS that handles this process and causes it
 to always update the in-widget-title span, even when the title entry is
 empty or missing.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15060>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list