Changes between Initial Version and Version 1 of Ticket #43844, comment 12
- Timestamp:
- 08/12/2018 11:04:13 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #43844, comment 12
initial v1 1 1 @javorszky Please help me out. I've been looking at the code related to this and I cannot find the code using the PHP `list` construct which is related to this behaviour which you refer to. 2 2 3 The class calls the `get_sortable_columns()` method on line 1019, filters it and then walks through it and correctly takes both string as well as array input into account as is attested by the `$data = (array) $data` on line 1038 and will set array key `1` (orderby)to `false` if it's not found, so it's quite unclear to me how what you refer to is even possible (error-wise).3 The class calls the `get_sortable_columns()` method on line 1019, filters it and then walks through it and correctly takes both string as well as array input into account as is attested by the `$data = (array) $data` on line 1038 and will set array key `1` to `false` if it's not found, so it's quite unclear to me how what you refer to is even possible (error-wise). 4 4 5 5 See: https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/class-wp-list-table.php#L1019-L1044