Skip to content

Commit af1db6f

Browse files
committed
Reset options if it's a string. It should always be an array. Badly written themes.
Signed-off-by: Kev Provance <[email protected]>
1 parent 1180d79 commit af1db6f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

redux-core/inc/classes/class-redux-options-constructor.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ public function get() {
120120

121121
}
122122

123+
if ( ! is_array( $result ) ) {
124+
return;
125+
}
126+
123127
if ( empty( $result ) && empty( $defaults ) ) {
124128
return;
125129
}

0 commit comments

Comments
 (0)