• Resolved taranes

    (@taranes)


    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

    http://wordpress.org/plugins/wordpress-wiki-plugin/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Jack K

    (@jack-kitterhing)

    Hi there Tim, @taranes,

    Greetings and thanks for your question.

    Your 100% right here, it is changing the post status, I’ll notify the lead developer about this.

    Thanks for your patience.

    Kind Regards
    Jack.

    Jack K

    (@jack-kitterhing)

    Hi there Tim, (@taranes)

    Hope your well today, sorry about the delay here.

    The lead developer has just pushed a update for this, could you re-download and check it resolves your issue?

    It seems to have worked for me 🙂

    Thank you!

    Kind Regards
    Jack.

    Thread Starter taranes

    (@taranes)

    Hi Jack,

    a first test was successfull: The post status remained ‘private’ after saving.

    Thanks for the fix!

    I’ll inform you in case I encounter another bug. 🙂

    Thanks again and best regards,
    Tim

    Awesome, thanks for letting us know.

    Have a great day!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Private pages are published when edited.’ is closed to new replies.