Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #43844, comment 12


Ignore:
Timestamp:
08/12/2018 11:04:13 PM (6 years ago)
Author:
jrf
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #43844, comment 12

    initial v1  
    11@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.
    22
    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).
     3The 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).
    44
    55See: https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/class-wp-list-table.php#L1019-L1044