PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.9
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.9
4.4.9 4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 All 140 releases
← All changes | templates/checkout/account-login.php +2 -8 4.4.2 → 4.4.9 View file →
@@ -13,16 +13,10 @@
13 13
14 14 if ( is_user_logged_in() ) {
15 15 return;
16 16 }
17 -
18 -$checked = 'checked="checked"';
19 -if ( ! is_user_logged_in() && LearnPress::instance()->checkout()->is_enable_guest_checkout() ) {
20 - $checked = '';
21 -}
22 17 ?>
23 18
24 -<input type="radio" id="checkout-account-switch-to-login" <?php echo $checked ?> name="checkout-account-switch-form" value="login"/>
25 19 <div id="checkout-account-login" class="lp-checkout-block left">
26 20
27 21 <h4><?php esc_html_e( 'Sign in', 'learnpress' ); ?></h4>
28 22
@@ -59,10 +53,10 @@
59 53
60 54 <p class="lp-checkout-sign-up-link">
61 55 <?php if ( LearnPress::instance()->checkout()->is_enable_register() ) : ?>
62 56 <?php esc_html_e( 'Don\'t have an account?', 'learnpress' ); ?>
63 - <a href="javascript: void(0);">
64 - <label for="checkout-account-switch-to-register"><?php echo esc_html_x( 'Sign up', 'checkout sign up link', 'learnpress' ); ?></label>
57 + <a href="<?php echo esc_url( add_query_arg( 'is_form_register', '1', LP_Helper::get_link_no_cache( learn_press_get_page_link( 'checkout' ) ) ) ); ?>">
58 + <?php echo esc_html_x( 'Sign up', 'checkout sign up link', 'learnpress' ); ?>
65 59 </a>.
66 60 <?php endif; ?>
67 61
68 62 <?php learn_press_get_template( 'checkout/guest-checkout-link' ); ?>