[wp-trac] [WordPress Trac] #19925: Empty widget title in admin not handled properly
WordPress Trac
wp-trac at lists.automattic.com
Mon Jan 30 01:53:19 UTC 2012
#19925: Empty widget title in admin not handled properly
----------------------------+-----------------------
Reporter: kawauso | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.4
Component: Administration | Version: 3.3.1
Severity: normal | Keywords: has-patch
----------------------------+-----------------------
'''Steps to reproduce:'''
1. Add a widget
1. Enter a title and save
1. Clear the title and save
1. The title in the widget handle will stay set to the original title
value
Line 252 of `wp-admin/js/widgets.dev.js` checks whether `title.val()` is a
valid value, but this will also reject empty strings. Attached patch
checks rejects for undefined values and clears the widget's handle title
if the string is just empty.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19925>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list