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

Fix post revision meta saving check when post_template conditional is… #830

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

joeyblake
Copy link
Contributor

… set.

Post_Template_Condition.php checks for existence of _wp_page_template in post_meta before saving. When the post is a revision there may not be a post_meta entry for _wp_page_template, so we need to check the parent post to ensure revision metadata is saved.

Fixes #829

… set.

Post_Template_Condition.php checks for existence of _wp_page_template in post_meta before saving. When the post is a revision there may not be a post_meta entry for _wp_page_template, so we need to check the parent post to ensure revision metadata is saved.

Fixes htmlburger#829
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.

Post_Template_Condition preventing post meta revision saving and breaking preview
1 participant