Private pages are published when edited.
-
Hi,
I like the plugin, but unfortunately, on each edit, the page’s
post_status
is set to ‘publish’ — even for pages which were set to ‘private’.It would be really helpful, if you could fix the plugin to keep the
post_status
of the edited page untouched.I think the problem stems from file
wordpress-wiki-plugin/wordpress-wiki-plugin.php
where
function edit_post( $post_data = null ) {
contains an unconditional
$post_data['post_status'] = 'publish';
In my case, I need all wiki pages to be private, so I replaced the assignment to
'private'
. Generally, removing that line should (hopefully) yield the wanted result.Or — if that’s actually a feature and not a bug — you could add a switch to the plugins settings, allowing to set the “preferred
post_status
after edits.”Regards,
Tim
- The topic ‘Private pages are published when edited.’ is closed to new replies.