WordPress.org

Make WordPress Core

Ticket #22392: 22392.diff

File 22392.diff, 606 bytes (added by markoheijnen, 6 years ago)

Change hidden code

  • wp-admin/js/postbox.js

     
    105105
    106106                save_state : function(page) {
    107107                        var closed = $('.postbox').filter('.closed').map(function() { return this.id; }).get().join(','),
    108                                 hidden = $('.postbox').filter(':hidden').map(function() { return this.id; }).get().join(',');
     108                                hidden = $('.hide-postbox-tog').not(':checked').map(function() { return this.value; }).get().join(',');
    109109
    110110                        $.post(ajaxurl, {
    111111                                action: 'closed-postboxes',