Skip to content

Commit

Permalink
Load content anyway if no meta exists for the post (post was created …
Browse files Browse the repository at this point in the history
…prior to plugin installation).
  • Loading branch information
willwbur committed Jan 23, 2012
1 parent 81afb14 commit 52d6ea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-plugin/mce-revisions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 52d6ea7

Please sign in to comment.