- Affected version
- 2.3.12
If you toggle the "Contextual" flag on for the Trending or Featured widgets, the filtering does not work according to what you'd expect, at least not on PHP 8.3/8.4. Unsure about earlier PHP versions.
Debug Code:
Output:

Problem:
Solution(s):
Either
Debug Code:
PHP:
$finder = $featureRepo->findFeaturedContent();
$filters = $this->getFilters();
\XF::dump($options);
\XF::dump($this->options);
die();
$this->applyFilters($finder, $filters);
Output:

Problem:
getFilters() reads $this->options but the content_container_id is only set for a local $options variable.Solution(s):
Either
getFilters() should accept the $options array, or (ideally) all instances of the local $options variable should be removed from render().