Skip to content

Commit

Permalink
Reset options if it's a string. It should always be an array. Badly w…
Browse files Browse the repository at this point in the history
…ritten themes.

Signed-off-by: Kev Provance <[email protected]>
  • Loading branch information
kprovance committed Jan 27, 2025
1 parent 1180d79 commit af1db6f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions redux-core/inc/classes/class-redux-options-constructor.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ public function get() {

}

if ( ! is_array( $result ) ) {
return;
}

if ( empty( $result ) && empty( $defaults ) ) {
return;
}
Expand Down

0 comments on commit af1db6f

Please sign in to comment.