[wp-trac] [WordPress Trac] #19925: Empty widget title in admin not handled properly

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 28 04:12:51 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          |  Resolution:
 Keywords:  has-patch       |
----------------------------+--------------------

Comment (by mp3j3rk):

 First off, I'm still new, so I could be completely off-base here.

 Before patching, after a refresh, or navigating away from the page and
 then back to it, the name updates.  Obviously, we would like to see the
 widget's title update immediately after clicking Save.

 After applying the patch, I did not see any change to the behavior.

 I do have a question, on line 256 of the patched file, why did you use
  {{{if (typeof title != "undefined")}}}
 instead of something like
  {{{if (typeof title == "undefined" || title === null || title === '')}}}
 ?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19925#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list