Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Status report page breaks when ep_indexable_post_types returns empty array #3909

Closed
1 task done
furai opened this issue May 13, 2024 · 0 comments · Fixed by #3910
Closed
1 task done

BUG: Status report page breaks when ep_indexable_post_types returns empty array #3909

furai opened this issue May 13, 2024 · 0 comments · Fixed by #3910
Labels
bug Something isn't working

Comments

@furai
Copy link
Contributor

furai commented May 13, 2024

Describe the bug

When ep_indexable_post_types filter returns an empty array the get_post_count_group function throws error about not returning array.

Steps to Reproduce

  1. Use in your hooks this code snippet:
    add_filter('ep_indexable_post_types', function () {
        return [];
    });
  2. Go to Status Report tab in WrodPress ElasticPress plugin section.
  3. Error happens.

Screenshots, screen recording, code snippet

No response

Environment information

No response

WordPress and ElasticPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@furai furai added the bug Something isn't working label May 13, 2024
@furai furai mentioned this issue May 13, 2024
4 tasks
@furai furai changed the title BUG: Status report breaks when ep_indexable_post_types returns empty array BUG: Status report page breaks when ep_indexable_post_types returns empty array May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant