Skip to content
This repository was archived by the owner on Jun 17, 2025. It is now read-only.

Conversation

grappler
Copy link

If the meta key is part of wp_post_revision_meta_keys() can be checked first before making a database request for get_post().

$post instanceof WP_Post is stricker then empty( $post ) or is_object( $preview )

@adamsilverstein
Copy link
Owner

Nice!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants