Skip to content

Commit

Permalink
fix: frontend registration form is not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
sapayth committed Jan 16, 2024
1 parent d3758ac commit 4438165
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions templates/registration-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
}
?>

<?php wpuf()->registration->show_errors(); ?>
<?php wpuf()->registration->show_messages(); ?>
<?php wpuf()->frontend->registration->show_errors(); ?>
<?php wpuf()->frontend->registration->show_messages(); ?>

<form name="registrationform" class="wpuf-registration-form" id="registrationform" action="<?php echo esc_attr( $action_url ); ?>" method="post">

Expand All @@ -31,12 +31,12 @@
<div class="wpuf-fields">
<div class="wpuf-name-field-wrap format-first-last">
<div class="wpuf-name-field-first-name">
<input type="text" name="reg_fname" id="wpuf-user_fname" class="input" value="<?php echo esc_attr( wpuf()->registration->get_posted_value( 'reg_fname' ) ); ?>" size="" />
<input type="text" name="reg_fname" id="wpuf-user_fname" class="input" value="<?php echo esc_attr( wpuf()->frontend->registration->get_posted_value( 'reg_fname' ) ); ?>" size="" />
<label class="wpuf-form-sub-label"><?php esc_html_e( 'First', 'wp-user-frontend' ); ?></label>
</div>

<div class="wpuf-name-field-last-name">
<input type="text" name="reg_lname" id="wpuf-user_lname" class="input" value="<?php echo esc_attr( wpuf()->registration->get_posted_value( 'reg_lname' ) ); ?>" size="16" />
<input type="text" name="reg_lname" id="wpuf-user_lname" class="input" value="<?php echo esc_attr( wpuf()->frontend->registration->get_posted_value( 'reg_lname' ) ); ?>" size="16" />
<label class="wpuf-form-sub-label"><?php esc_html_e( 'Last', 'wp-user-frontend' ); ?></label>
</div>
</div>
Expand All @@ -46,14 +46,14 @@
<li>
<div class="wpuf-label"><?php esc_html_e( 'Email', 'wp-user-frontend' ); ?> <span class="required">*</span></div>
<div class="wpuf-fields">
<input type="text" name="reg_email" id="wpuf-user_email" class="input" value="<?php echo esc_attr( wpuf()->registration->get_posted_value( 'reg_email' ) ); ?>" size="40">
<input type="text" name="reg_email" id="wpuf-user_email" class="input" value="<?php echo esc_attr( wpuf()->frontend->registration->get_posted_value( 'reg_email' ) ); ?>" size="40">
</div>
</li>

<li>
<div class="wpuf-label"><?php esc_html_e( 'Username', 'wp-user-frontend' ); ?> <span class="required">*</span></div>
<div class="wpuf-fields">
<input type="text" name="log" id="wpuf-user_login" class="input" value="<?php echo esc_attr( wpuf()->registration->get_posted_value( 'log' ) ); ?>" size="40" />
<input type="text" name="log" id="wpuf-user_login" class="input" value="<?php echo esc_attr( wpuf()->frontend->registration->get_posted_value( 'log' ) ); ?>" size="40" />
</div>
</li>

Expand All @@ -75,7 +75,7 @@
<input type="submit" name="wp-submit" id="wp-submit" value="<?php echo esc_attr( 'Register', 'wp-user-frontend' ); ?>" />
<input type="hidden" name="urhidden" value="<?php echo esc_attr( $userrole ); ?>" />
<input type="hidden" name="user_nonce" value="<?php echo esc_attr( $user_nonce ); ?>" />
<input type="hidden" name="redirect_to" value="<?php echo esc_attr( wpuf()->registration->get_posted_value( 'redirect_to' ) ); ?>" />
<input type="hidden" name="redirect_to" value="<?php echo esc_attr( wpuf()->frontend->registration->get_posted_value( 'redirect_to' ) ); ?>" />
<input type="hidden" name="wpuf_registration" value="true" />
<input type="hidden" name="action" value="registration" />

Expand Down

0 comments on commit 4438165

Please sign in to comment.