From a084a1a905eddc67e81ebd889b164436ad492d1b Mon Sep 17 00:00:00 2001 From: Adam Silverstein Date: Wed, 1 Feb 2017 12:43:34 -0500 Subject: [PATCH] Ensure revisioned meta stored as single values, not array --- wp-post-meta-revisions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-post-meta-revisions.php b/wp-post-meta-revisions.php index de02b12..47dc675 100644 --- a/wp-post-meta-revisions.php +++ b/wp-post-meta-revisions.php @@ -132,7 +132,7 @@ public function _wp_save_revisioned_meta_fields( $revision_id ) { $post_id = $revision->post_parent; // Save revisioned meta fields. foreach ( $this->_wp_post_revision_meta_keys() as $meta_key ) { - $meta_value = get_post_meta( $post_id, $meta_key ); + $meta_value = get_post_meta( $post_id, $meta_key, true ); /* * Use the underlying add_metadata() function vs add_post_meta()