You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Single checkbox meta fields won't "uncheck" and simply revert to the "checked" state upon saving the post.
I've rewritten the checkbox case to conditionally create a hidden input type with the same name as the checkbox input to allow for successful checking, unchecking, and rechecking of single checkboxes.
Below is my suggestion for replacing lines 62-66 of meta_box.php
I'e tried this method of fixing the error but it does not seem to work. I adjusted your variables to match my own and the HTML output is as expected but I stil get the undefined index and "headers already sent" errors
Single checkbox meta fields won't "uncheck" and simply revert to the "checked" state upon saving the post.
I've rewritten the checkbox case to conditionally create a hidden input type with the same name as the checkbox input to allow for successful checking, unchecking, and rechecking of single checkboxes.
Below is my suggestion for replacing lines 62-66 of meta_box.php
The text was updated successfully, but these errors were encountered: