Skip to content

Commit

Permalink
Merge pull request #3189 from dparker1005/user-field-default-fix-fals…
Browse files Browse the repository at this point in the history
…e-postive-applications

Fix user fields applying default value when '0' is set
  • Loading branch information
dparker1005 authored Nov 19, 2024
2 parents ad55f7b + 9e29516 commit f6769fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/class-pmpro-field.php
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ function getHTML($value = "")
$r_end .= "</div>";
}

if ( empty( $value ) && pmpro_is_checkout() ) {
if ( '' === $value && pmpro_is_checkout() ) {
/**
* Filter to set the default value for a field. The default value will only load if no value is already found.
*
Expand Down

0 comments on commit f6769fc

Please sign in to comment.