We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e730d5 commit a6dc453Copy full SHA for a6dc453
1 file changed
src/class-tiny-settings.php
@@ -196,9 +196,10 @@ public function get_preserve_options() {
196
$settings = get_option(self::get_prefixed_name('preserve_data'));
197
$options = array();
198
if ($settings) {
199
- foreach (array_keys($settings) as &$setting) {
200
- if ($settings[$setting] === "on") {
201
- array_push($options, $setting);
+ $keys = array_keys($settings);
+ foreach ($keys as &$key) {
+ if ($settings[$key] === "on") {
202
+ array_push($options, $key);
203
}
204
205
0 commit comments