WordPress.org

Make WordPress Core

Ticket #12339: 12339.patch

File 12339.patch, 543 bytes (added by junsuijin, 4 years ago)

adds a + 1 on li 183

  • wp-admin/js/custom-navigation-dynamic-functions.dev.js

     
    180180                inputdescription = ''; 
    181181        } 
    182182 
    183         var count=document.getElementById('custom-nav').getElementsByTagName('li').length; 
     183        var count=document.getElementById('custom-nav').getElementsByTagName('li').length + 1; 
    184184 
    185185        var randomnumber = count; 
    186186