Home › Forums › WTI Like Post PRO › Add new post error › Reply To: Add new post error
July 15, 2014 at 3:29 pm
#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.