[go: nahoru, domu]

Skip to content

Commit

Permalink
Merge pull request #3046 from kimcoleman/fix-classnames-user-fields-m…
Browse files Browse the repository at this point in the history
…issing-space

Fix no space between classes when adding a field wrapper class element / divclass
  • Loading branch information
dparker1005 committed Jul 3, 2024
2 parents 223b7a8 + e7a1859 commit afb0ba8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions classes/class-pmpro-field.php
Original file line number Diff line number Diff line change
Expand Up @@ -1221,6 +1221,11 @@ function displayAtCheckout()
$value = "";
}

// Fix divclass.
if ( ! empty( $this->divclass ) ) {
$this->divclass .= " ";
}

// Add a class to the field based on the type.
$this->divclass .= "pmpro_form_field pmpro_form_field-" . $this->type;
$this->class .= " pmpro_form_input-" . $this->type;
Expand Down

0 comments on commit afb0ba8

Please sign in to comment.