Permalink
Browse files

Fix document_to_private filter

  • Loading branch information...
1 parent 8d09de2 commit 04922d73eb63172e79f2f9e86e4002cee032e4ef @Marv51 Marv51 committed Jul 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 wp-document-revisions.php
@@ -241,7 +241,7 @@ function make_private() {
if ( !isset( $post) || !$this->verify_post_type() || strlen( $post->post_content ) > 0 )
return;
- $post_pre = $post;
+ $post_pre = clone $post;
if ( $post->post_status == 'draft' || $post->post_status == 'auto-draft' )
$post->post_status = 'private';

0 comments on commit 04922d7

Please sign in to comment.