WordPress.org

Make WordPress Core

Ticket #19925: 19925.1.diff

File 19925.1.diff, 583 bytes (added by mp3j3rk, 2 years ago)

patches ./wp-admin/js/widgets.js

  • wp-admin/js/widgets.js

     
    240240    if(c=c.val()){ 
    241241        c=c.replace(/<[^<>]+>/g,"").replace(/</g,"&lt;").replace(/>/g,"&gt;"); 
    242242        a(b).children(".widget-top").children(".widget-title").children().children(".in-widget-title").html(": "+c) 
    243     } 
    244 }, 
     243        } else { 
     244        a(b).children(".widget-top").children(".widget-title").children().children(".in-widget-title").empty() 
     245        } 
     246    }, 
    245247