Skip to content

Commit

Permalink
Issue #49 - don't forget to call validate_show_same
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed Jan 24, 2020
1 parent a854e67 commit d42129b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions admin/class-oik-clone-admin-slave.php
Expand Up @@ -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;

Expand All @@ -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 ;
}

/**
Expand Down

0 comments on commit d42129b

Please sign in to comment.