_Lui_
Forum Replies Created
-
Forum: Hacks
In reply to: before_delete_post – problemsRedirect works like a charm, but it just doesnt display the errormessage on the page. Do i have to enable error-reporting or anything in wordpress?
Thanks again 🙂
Forum: Hacks
In reply to: before_delete_post – problemsWorks perfectly now, thank you very much 😉 !!!
Posts wont get deleted in WP and if the connection resumes it works again 🙂Its just that after i click “publish” (or delete/edit etc) it opens a new window displaying the error message (…/wordpress/wp-admin/post.php)
Is there a way to not change the page and just diaply it in the “edit-window”? I tried to display a error-message with ‘toastr’ (ajax/json), but it doesnt seem to work, it just displays a blank page with the code.Thank you for your help so far!
Forum: Hacks
In reply to: before_delete_post – problemsThanks, that pre_post_update really helped a lot!! 🙂
So the last problem is f.e. if you created a post and it got into the database, nothing wrong with that. But if you want to delete the post without a connection the error message pops up, the post stays in the DB, but it gets deleted on the blog. So its not possible (if the connection resumes) to delete it from the DB.
So is there a way to tell WP “stop what you are doing”, “dont delete the post” or “make a rollback”. I hope you get what i mean.
Thanks for the help!! 🙂