]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/js/postbox.js
WordPress 4.4.1
[autoinstalls/wordpress.git] / wp-admin / js / postbox.js
index 4fe74193bbd830617557dcff3a7f834e82593fa3..c75e423dfd0fbb29459db0f9b11df719361f94d1 100644 (file)
@@ -50,7 +50,7 @@ var postboxes;
                        this.page = page;
                        this.init( page, args );
 
-                       $handles.on( 'click.postboxes',  this.handle_click );
+                       $handles.on( 'click.postboxes', this.handle_click );
 
                        $('.postbox .hndle a').click( function(e) {
                                e.stopPropagation();
@@ -144,8 +144,15 @@ var postboxes;
                },
 
                save_state : function(page) {
-                       var closed = $('.postbox').filter('.closed').map(function() { return this.id; }).get().join(','),
-                               hidden = $('.postbox').filter(':hidden').map(function() { return this.id; }).get().join(',');
+                       var closed, hidden;
+
+                       // Return on the nav-menus.php screen, see #35112.
+                       if ( 'nav-menus' === page ) {
+                               return;
+                       }
+
+                       closed = $( '.postbox' ).filter( '.closed' ).map( function() { return this.id; } ).get().join( ',' );
+                       hidden = $( '.postbox' ).filter( ':hidden' ).map( function() { return this.id; } ).get().join( ',' );
 
                        $.post(ajaxurl, {
                                action: 'closed-postboxes',