Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

Commit

Permalink
Fix for #150: Non-array values in WP data. Thanks @wilokecom
Browse files Browse the repository at this point in the history
  • Loading branch information
dovy committed Aug 25, 2020
1 parent 44587ed commit 2c77184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redux-core/inc/classes/class-redux-wordpress-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ private function get_current_data_args( $type, $args, &$current_value ) {
case 'post':
case 'posts':
if ( ! empty( $current_value ) ) {
$args['post__in'] = $current_value;
$args['post__in'] = is_array( $current_value ) ? $current_value : array( $current_value );
}
break;

Expand Down

0 comments on commit 2c77184

Please sign in to comment.