Too strict if statements - Fixes #34

This commit is contained in:
Jay Wood
2015-12-14 09:43:40 -05:00
parent f2ecbf8416
commit 0a2a381675

View File

@ -118,6 +118,8 @@ class CWV3Admin {
if ( isset( $_POST['cwv3_auth'] ) ) {
$cwv3_checkbox = sanitize_text_field( $_POST['cwv3_auth'] );
update_post_meta( $post_id, 'cwv3_auth', $cwv3_checkbox );
} else {
delete_post_meta( $post_id, 'cwv3_auth' );
}
}