]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/js/customize-nav-menus.js
WordPress 4.7.1-scripts
[autoinstalls/wordpress.git] / wp-admin / js / customize-nav-menus.js
index b7556f6702ccaae7dd34f5ac0e962054943fc293..a37d2c4e795cd50fc902c1323cddeb4a8e2d8053 100644 (file)
 
                        // @todo It would be better if this was added directly on the setting itself, as opposed to the control.
                        control.setting.validate = function( value ) {
-                               return parseInt( value, 10 );
+                               if ( '' === value ) {
+                                       return 0;
+                               } else {
+                                       return parseInt( value, 10 );
+                               }
                        };
 
                        // Edit menu button.