-
Notifications
You must be signed in to change notification settings - Fork 423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
meta-box not saving data #248
Comments
Try turning off autosave. Go to the demo code and set autosave to false
|
Thanks for reply. Unfortunately if I turn autosave off, I am not even possible to load "new post" page (wordpress gives me still the same message: "Are you sure you want to do this? try again later"). |
Sounds like whatever change rilwis made for the autosave feature is messing up when you create a new post/page. Definitely related to the nonce detection. |
Not a solution, but this is the notice you'll get when |
Yup, definitely related. When rilwis changed the code to allow autosaving, it messed something up when you create a post. |
This is what I think the problem is: The |
Okay, think I found a solution: Basically, the problem is the checker in I'm gonna do some testing to make sure that this is ironclad and works always before I post a solution to the issue |
Nice solution. Didn't know Wordpress already checks for capabilities but it makes sense |
Hello,
couple days ago I have forked and cloned Meta-box and saved it to brand new Wordpress installation to /plugin (newest version both, Meta-box & Wordpress - no other plugins installed). But when I tried to run "demo.php" (as described here) and in WP admin clicked on "new post" wordpress gave me "Are you sure you want to do this? try again later" with no option to proceed. After I remove 2nd meta box from demo.php and clicked on "new post" again, wordpress showed me Meta-box inputs, but after I typed another values and saved it no change of default values was stored into database (I double checked it).
I tried to download Meta-box straight from WP administration and that way everything worked perfectly.
Am I doing something wrong or is this some kind of bug?
Thank you for any help
The text was updated successfully, but these errors were encountered: