Skip to content

Commit

Permalink
Merge pull request #1622 from kobizz/release/1.5.0
Browse files Browse the repository at this point in the history
Fix
  • Loading branch information
KingYes committed Apr 18, 2017
2 parents 7916557 + db47328 commit 588a3eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion includes/controls/repeater.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ public function get_value( $control, $widget ) {
foreach ( $value as &$item ) {
foreach ( $control['fields'] as $field ) {
$control_obj = Plugin::$instance->controls_manager->get_control( $field['type'] );
if ( ! $control_obj )

// Prior to 1.5.0 the fields may contains non-data controls
if ( ! $control_obj instanceof Base_Data_control )
continue;

$item[ $field['name'] ] = $control_obj->get_value( $field, $item );
Expand Down

0 comments on commit 588a3eb

Please sign in to comment.