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

Prevent order fields from being removed #2728

Merged
merged 5 commits into from
Apr 27, 2022
Merged

Prevent order fields from being removed #2728

merged 5 commits into from
Apr 27, 2022

Conversation

felipeelia
Copy link
Member

Description of the Change

Since ElasticPress 4.0.0, password-protected posts have their content removed during the sync process. As stated in #2726, that is a problem for WooCommerce Orders created in the frontend. This PR adjusts that behavior.

Closes #2726

Changelog Entry

Added: $post_args and $post_id to the ep_pc_skip_post_content_cleanup filter.
Fixed: Sync of WooCommerce Orders fields when WooCommerce and Protected Content features are enabled.

Credits

Props @felipeelia @ecaron

@felipeelia felipeelia added this to the 4.2.0 milestone Apr 27, 2022
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.

QUESTION: Since _order_key populates post_password, is excluding order contents intentional?
1 participant