Ocean Extra v2.4.7 introduces $attr['location'] being passed through filter_var() before being handled:
$attr['location'] = filter_var( $attr['location'], FILTER_VALIDATE_BOOLEAN );
filter_var() will convert the string to a boolean, meaning the check for the string in the lines below doesn't work anymore:
if ( isset($attr['location']) && $attr['location'] === "true" ) {
$location = true;
} else if ( isset($attr['location']) && $attr['location'] === "false" ) {
$location = false;
}
In order to make it work again, the condition needs to check against the boolean now:
if ( isset($attr['location']) && $attr['location'] === true ) {
$location = true;
} else if ( isset($attr['location']) && $attr['location'] === false ) {
$location = false;
}
Ocean Extra v2.4.7 introduces
$attr['location']being passed throughfilter_var()before being handled:filter_var()will convert the string to a boolean, meaning the check for the string in the lines below doesn't work anymore:In order to make it work again, the condition needs to check against the boolean now: