Skip to content

Commit

Permalink
update logic for applying default_all
Browse files Browse the repository at this point in the history
  • Loading branch information
raideus committed Oct 20, 2013
1 parent d35e513 commit 49d78a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wpas-field.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function __construct($id, $args = array()) {
if(isset($_REQUEST[$id])) {
$this->selected = $_REQUEST[$id];
$this->selected_r = $_REQUEST[$id];
} elseif ($default_all && ($format == 'checkbox' || $format == 'multi-select')) {
} elseif ($default_all && !isset($_REQUEST['wpas']) && ($format == 'checkbox' || $format == 'multi-select')) {
foreach ($this->values as $value => $label) {
$this->selected[] = $value;
$this->selected_r[] = $value;
Expand Down

0 comments on commit 49d78a7

Please sign in to comment.