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

Commit cba81ef

Browse files
committed
is_field_in_use fix.
Signed-off-by: Kevin Provance <kevin.provance@gmail.com>
1 parent 0362249 commit cba81ef

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

redux-core/inc/classes/class-redux-helpers.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,9 @@ public static function isFieldInUse( $parent, $field ) { // phpcs:ignore WordPre
169169
*/
170170
public static function is_field_in_use( $parent, $field ) {
171171
if ( empty( $parent->sections ) ) {
172-
return;
172+
return false;
173173
}
174+
174175
foreach ( $parent->sections as $k => $section ) {
175176
if ( ! isset( $section['title'] ) ) {
176177
continue;
@@ -182,6 +183,8 @@ public static function is_field_in_use( $parent, $field ) {
182183
}
183184
}
184185
}
186+
187+
return false;
185188
}
186189

187190
/**

0 commit comments

Comments
 (0)