If you leave the "Categories to enable" option blank as is often the case, the following warning will be issued depending on PHP error settings:
_" Warning: inarray() expects parameter 2 to be array, null given in wp-content\plugins\fantastic-elasticsearch\wp\theme\category.php on line 37"
This is due to the:
$enabled = Config::option('enable_categories');
returning null if there is no category selected. A very easy fix would be to add after it:
$enabled = $enabled !== null ? $enabled : array();
Sorry but i dont have time to go over submitting a pull request now since im sending that form a windows machine and the build scripts assume linux env.
If you leave the "Categories to enable" option blank as is often the case, the following warning will be issued depending on PHP error settings:
_" Warning: inarray() expects parameter 2 to be array, null given in wp-content\plugins\fantastic-elasticsearch\wp\theme\category.php on line 37"
This is due to the:
$enabled = Config::option('enable_categories');
returning null if there is no category selected. A very easy fix would be to add after it:$enabled = $enabled !== null ? $enabled : array();
Sorry but i dont have time to go over submitting a pull request now since im sending that form a windows machine and the build scripts assume linux env.