Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Add new post error #143
    weimao
    Participant

    Thank you!

    in reply to: Add new post error #140
    weimao
    Participant

    No it doesn’t. The post editing interface still show up, only that it has the error message at the top.

    For now, I’ve changed the code to check whether the nonce is empty:

    if (empty($_POST[‘wti_like_post_meta_box_nonce’])
    || !wp_verify_nonce( $_POST[‘wti_like_post_meta_box_nonce’], basename( __FILE__ ) ) ) {
    return $post_id;
    }

    Not sure if this is the best solution but it appears to work.

    Let me know if you have further advice.

Viewing 2 posts - 1 through 2 (of 2 total)