Skip to content

Commit

Permalink
Disallow unknown variables (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienheraud committed May 23, 2022
1 parent efba1cf commit 2d27c7f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions libraries/cck/_/plugin/field.php
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,11 @@ public static function g_onCCK_FieldPrepareForm( &$field, &$config = array() )
}
}

// Allowed Query Vars
if ( $config['client'] == 'search' && $field->state ) {
$config['pagination_vars'][$field->name] = true;
}

// Css
if ( $field->variation ) {
$css = '';
Expand Down Expand Up @@ -969,6 +974,11 @@ public function g_onCCK_FieldPrepareSearch( &$field, &$config = array() )
$field->state = 0;
}
}

// Allowed Query Vars
if ( $field->state ) {
$config['pagination_vars'][$field->name] = true;
}
}

// g_onCCK_FieldPrepareStore
Expand Down

0 comments on commit 2d27c7f

Please sign in to comment.