Custom column on posts/pages not displayed
-
There’s a bug in the custom column code on line 44 of src/Admin/Post/ListTable.php:
$disable?=?array_key_exists($typenow,?$this->settings->disable??:?[]);
This code always evaluates to true as it only checks to see if the array key exists, not what it is set to. The code should be:
$disable = array_key_exists($typenow, $this->settings->disable ?: []) ? $this->settings->disable[$typenow] : false;
So that the value of the array setting is used if it exists, otherwise it is set to false in all other circumstances.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom column on posts/pages not displayed’ is closed to new replies.