Skip to content

Commit

Permalink
0.3.2.
Browse files Browse the repository at this point in the history
Add More Checks...
  • Loading branch information
quasel committed May 18, 2017
2 parents 2353d8c + 7a7157a commit fb2179e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
14 changes: 10 additions & 4 deletions classes/class-pods-page-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,11 @@ private function recurse_pod_fields( $pod_name, $field_options = array(), $prefi
$pod = pods( $pod_name );
$recurse_queue = array();

$all_pod_fields = array_merge( $pod->pod_data['object_fields'], $pod->fields() );
if ( isset( $pod->pod_data['object_fields'] ) ) {
$all_pod_fields = array_merge( $pod->pod_data['object_fields'], $pod->fields() );
} else {
$all_pod_fields = $pod->fields();
}


foreach ( $all_pod_fields as $field_name => $field ) {
Expand All @@ -346,9 +350,11 @@ private function recurse_pod_fields( $pod_name, $field_options = array(), $prefi

if ( $field_options ) {
if ( isset($field_options['type']) && $field_options['type'] === $field['type'] ) {
foreach ( $field_options['options'] as $_option => $option_value ) {
if ( $option_value !== pods_v( $_option, $field['options'] ) ) {
continue 2; // don't check further if one option it not matched
if ( isset ( $field_options['options'] ) ) {
foreach ( $field_options['options'] as $_option => $option_value ) {
if ( $option_value !== pods_v( $_option, $field['options'] ) ) {
continue 2; // don't check further if one option is not matched
}
}
}

Expand Down
7 changes: 6 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: https://pods.io/friends-of-pods/
Tags: pods, beaver builder, beaver themer
Requires at least: 4.0
Tested up to: 4.6
Stable tag: 0.3.1-beta
Stable tag: 0.3.2-beta
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand All @@ -28,6 +28,11 @@ To be done ;)

== Changelog ==

= 0.3.2-beta - May 18, 2017 =

* du to @alex testing added some edge case checks
* fixed default image

= 0.3.1-beta - May 17, 2017 =

* Bug fix for illegal string offset
Expand Down

0 comments on commit fb2179e

Please sign in to comment.