WordPress.org

Make WordPress Core

Ticket #9668: patch-#9668.diff

File patch-#9668.diff, 520 bytes (added by petervanderdoes, 9 years ago)

Patch to solve the problem

  • wp-admin/js/widgets.js

    diff -Nuar orig/wp-admin/js/widgets.js patched/wp-admin/js/widgets.js
    old new  
    7272
    7373        // onclick for add links
    7474        var addClick = function() {
    75                 var oldLi = $(this).parents('li:first').find('ul.widget-control-info li');
     75                var oldLi = $(this).parents('li:first').find('ul.widget-control-info li:first');
    7676                var newLi = oldLi.clone();
    7777
    7878                if ( newLi.html().match( /%i%/ ) ) {