diff --git a/wp-post-meta-revisions.php b/wp-post-meta-revisions.php index de02b12..45e9452 100644 --- a/wp-post-meta-revisions.php +++ b/wp-post-meta-revisions.php @@ -134,6 +134,10 @@ public function _wp_save_revisioned_meta_fields( $revision_id ) { foreach ( $this->_wp_post_revision_meta_keys() as $meta_key ) { $meta_value = get_post_meta( $post_id, $meta_key ); + if ( empty( $meta_value ) ) { + continue 1; + } + /* * Use the underlying add_metadata() function vs add_post_meta() * to ensure metadata is added to the revision post and not its parent.