[Plugin: WP Document Revisions] Not private by default
-
Hi,
I want to undo themake_privateby default part of the plugin.
There is a filterdocument_to_privatethat should enable this. It passes $post and $post_pre to the filter.
My filter looks like this:add_filter( 'document_to_private', 'dont_make_private', 10, 2); function dont_make_private($post, $post_pre ){ return $post_pre; }This doesn’t work.
die($post->post_status);anddie($post_pre->post_status);both result inprivate.
My PHP version is 5.3.2-1ubuntu4.17 (?).
Is that a bug?
Thank youMarvin
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘[Plugin: WP Document Revisions] Not private by default’ is closed to new replies.