10up / ElasticPress

A fast and flexible search and query engine for WordPress.
https://elasticpress.io
GNU General Public License v2.0
1.23k stars 312 forks source link

Fix status report page #3910

Closed furai closed 2 months ago

furai commented 2 months ago

Description of the Change

Fixes the bug with status report page throwing an error when indexable post types returns an empty array. Closes #3909

How to test the Change

Add ep_indexable_post_types filter that returns an empty array.

Changelog Entry

Fixed - Status report page when indexable post types is an empty array.

Checklist:

furai commented 2 months ago

I'll check if I can cover this in a test case and edit the main post accordingly.

EDIT: I could probably do it but definitely not today. I've been looking into whole setup and it's a bit complicated for a new contributor like me. I'd appreciate if any contributor could chime in and maybe add these extra tests if required for me. Maybe it's possible to merge this PR without extra tests cause it's really minor patch.

felipeelia commented 2 months ago

Thanks for the PR @furai!

furai commented 2 months ago

Thank you! I found some other issues I might patch in future. :)