From d42129bde7cb0c35b5edb65262dd651b328c8638 Mon Sep 17 00:00:00 2001 From: Herb Miller Date: Fri, 24 Jan 2020 15:39:31 +0000 Subject: [PATCH] Issue #49 - don't forget to call validate_show_same --- admin/class-oik-clone-admin-slave.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/admin/class-oik-clone-admin-slave.php b/admin/class-oik-clone-admin-slave.php index 61415ae..aed23c2 100644 --- a/admin/class-oik-clone-admin-slave.php +++ b/admin/class-oik-clone-admin-slave.php @@ -155,6 +155,7 @@ function oik_clone_slave_action_pull() { function validate_slave_form_fields() { $this->validate_slave(); $this->validate_clone_post_type(); + $this->validate_show_same(); $slave_list = $this->slave && $this->clone_post_type; return $slave_list; @@ -170,9 +171,9 @@ function validate_clone_post_type(){ } function validate_show_same() { - $show_same = bw_array_get( $_REQUEST, 'show_same', null ); - $this->show_same = bw_validate_torf( $show_same ); - + $show_same = bw_array_get( $_REQUEST, 'show_same', 'on' ); + //echo $show_same; + $this->show_same = $show_same ; } /**