[wp-trac] [WordPress Trac] #21249: WP_List_Table::single_row_columns() needs to do an exact comparison
WordPress Trac
wp-trac at lists.automattic.com
Fri Jul 13 01:20:28 UTC 2012
#21249: WP_List_Table::single_row_columns() needs to do an exact comparison
----------------------------+-------------------------------------
Reporter: Viper007Bond | Owner:
Type: defect (bug) | Status: new
Priority: lowest | Milestone: Awaiting Review
Component: Administration | Version:
Severity: trivial | Keywords: has-patch needs-testing
----------------------------+-------------------------------------
If for whatever reason you pass a column ID of `0` when dealing with a
list table, !WordPress thinks it's a checkbox column because of the loose
comparison, i.e. `==` instead of `===`.
Since I don't see why passing a number instead of a string shouldn'r be
allowed, attached is a patch.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21249>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list