[wp-trac] [WordPress Trac] #32466: List table: hidden columns return unnecessary empty items
WordPress Trac
noreply at wordpress.org
Sat Jun 13 14:59:42 UTC 2015
#32466: List table: hidden columns return unnecessary empty items
----------------------------+-----------------------------
Reporter: afercia | Owner: wonderboymusic
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.3
Component: Administration | Version: 4.2
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: javascript
----------------------------+-----------------------------
Changes (by wonderboymusic):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"32751"]:
{{{
#!CommitTicketReference repository="" revision="32751"
In `wp_ajax_hidden_columns()`, don't `explode()` on an empty string.
In `columns.hidden()`, which lives in `common.js`, don't return items with
no `id`.
This was resulting in options like `manageedit-postcolumnshidden`
containing a serialized array with random empty items.
Props afercia, wonderboymusic.
Fixes #32466.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32466#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list