From 5bb0fee8be3ece600f396e97d6f4651124761448 Mon Sep 17 00:00:00 2001 From: Jay Wood Date: Sat, 29 Aug 2015 13:13:25 -0400 Subject: [PATCH] Checkbox var change --- class/admin.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/class/admin.class.php b/class/admin.class.php index d87d2c8..5897d94 100644 --- a/class/admin.class.php +++ b/class/admin.class.php @@ -87,8 +87,8 @@ class CWV3Admin { // check isset before access (edit by @jgraup) if ( isset( $_POST['cwv3_auth'] ) ) { - $mydata = sanitize_text_field( $_POST['cwv3_auth'] ); - update_post_meta( $post_id, 'cwv3_auth', $mydata ); + $cwv3_checkbox = sanitize_text_field( $_POST['cwv3_auth'] ); + update_post_meta( $post_id, 'cwv3_auth', $cwv3_checkbox ); } }