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

Use site_meta instead of blog_option #3571

Merged
merged 5 commits into from
Aug 1, 2023
Merged

Conversation

felipeelia
Copy link
Member

@felipeelia felipeelia commented Jul 31, 2023

Description of the Change

This PR changes all the *blog_option() calls to *site_meta() as this way we don't need to iterate over all sites to check if they are indexable or not.

For ElasticPress 4.7 we are still keeping the blog_option for backwards compatibility. In ElasticPress 5.0 we can remove that entirely.

Closes #3457

How to test the Change

Changelog Entry

Changed - In a multisite, if a site is indexable or not is now stored in site meta, instead of a blog option.

Credits

Props @felipeelia @Rahe

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.7.0 milestone Jul 31, 2023
@felipeelia felipeelia merged commit ea21f10 into develop Aug 1, 2023
9 checks passed
@felipeelia felipeelia deleted the feature/issue-3457 branch August 1, 2023 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use sitemeta for the ep_indexable metadata
1 participant