From 52d6ea7584fc248019ba12545349fcb99c16ffc4 Mon Sep 17 00:00:00 2001 From: Will Date: Mon, 23 Jan 2012 18:39:37 -0500 Subject: [PATCH] Load content anyway if no meta exists for the post (post was created prior to plugin installation). --- wp-plugin/mce-revisions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-plugin/mce-revisions.php b/wp-plugin/mce-revisions.php index 44018323..a7cf425f 100644 --- a/wp-plugin/mce-revisions.php +++ b/wp-plugin/mce-revisions.php @@ -132,7 +132,7 @@ function vrev_load_revisions_content($content) { $runonce = true; if ( $post->post_status == 'publish' || $post->post_status == 'future' ) { $meta = get_post_meta($post_ID, '_ice_revisions_content'); - $content = (string) array_pop($meta); + $content = empty($meta) ? $content : (string) array_pop($meta); } return $content;