Skip to content

Commit

Permalink
Merge pull request #2669 from raftaar1191/issues-2661-new
Browse files Browse the repository at this point in the history
Issues 2661 new
  • Loading branch information
Devin Walker committed Jan 17, 2018
2 parents f7d8f01 + 8ae7ce0 commit d394419
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions includes/forms/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -1118,12 +1118,15 @@ function give_get_register_fields( $form_id ) {
if ( ! give_is_setting_enabled( $is_guest_checkout ) ) {
echo Give()->tooltips->render(
array(
'tag_content' => '<input type="checkbox" name="give_create_account" value="on" id="give-create-account-" class="give-input give-disabled" checked />',
'tag_content' => sprintf(
'<input type="checkbox" name="give_create_account" value="on" id="%s" class="give-input give-disabled" checked />',
$id
),
'label' => __( 'Registration is required to donate.', 'give' ),
) );
} else {
?>
<input type="checkbox" name="give_create_account" value="on" id="give-create-account-<?php echo $form_id; ?>" class="give-input" />
<input type="checkbox" name="give_create_account" value="on" id="<?php echo $id; ?>" class="give-input" />
<?php
}
?>
Expand Down

0 comments on commit d394419

Please sign in to comment.