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

Meta and Meta Range facets only available on WP 5.8+ #3420

Merged
merged 1 commit into from
Apr 3, 2023

Conversation

felipeelia
Copy link
Member

@felipeelia felipeelia commented Apr 3, 2023

Description of the Change

This PR adds a check for the WordPress version before making the Meta and Meta Range facets available, as they depend on a WordPress class only available in WP 5.8+

Closes #3401

As testing this depends on the WP version, I've opened #3421 to have that done.

How to test the Change

Changelog Entry

Fixed - Fatal error while syncing on older versions of WordPress

Credits

Props @felipeelia @TorlockC

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@felipeelia felipeelia added this to the 4.5.1 milestone Apr 3, 2023
@felipeelia felipeelia merged commit 6a43f63 into develop Apr 3, 2023
@felipeelia felipeelia deleted the fix/issue-3401 branch April 3, 2023 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants