Changeset 3085209
- Timestamp:
- 05/12/2024 10:42:05 AM (23 months ago)
- Location:
- ajax-login-and-registration-modal-popup/trunk
- Files:
-
- 1 added
- 9 edited
-
README.md (added)
-
ajax-login-registration-modal-popup.php (modified) (2 diffs)
-
includes/class-ajax.php (modified) (2 diffs)
-
includes/class-core.php (modified) (3 diffs)
-
includes/class-wpml.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
views/form-parts/login.php (modified) (1 diff)
-
views/form-parts/lost-password.php (modified) (1 diff)
-
views/form-parts/register.php (modified) (3 diffs)
-
views/form.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ajax-login-and-registration-modal-popup/trunk/ajax-login-registration-modal-popup.php
r2892256 r3085209 4 4 Plugin URI: https://maxim-kaminsky.com/shop/product/ajax-login-and-registration-modal-popup-pro/ 5 5 Description: Easy to integrate modal with Login and Registration features + inline form using shortcode. 6 Version: 2.2 36 Version: 2.24 7 7 Author URI: http://maxim-kaminsky.com/ 8 8 Author: Maxim K … … 34 34 } 35 35 36 define("LRM_VERSION", '2.2 3');36 define("LRM_VERSION", '2.24'); 37 37 38 define("LRM_ASSETS_VER", 5 7);38 define("LRM_ASSETS_VER", 56); 39 39 40 40 //define('LRM_LOAD_ASSETS_ONLY_FOR_INLINE', 1); //- if no modal used - only inline form -
ajax-login-and-registration-modal-popup/trunk/includes/class-ajax.php
r2892257 r3085209 775 775 //setcookie( $rp_cookie, ' ', time() - YEAR_IN_SECONDS, $rp_path, COOKIE_DOMAIN, is_ssl(), true ); 776 776 if ( $user && $user->get_error_code() === 'expired_key' ) { 777 $errors->add('invalidkey', __('Your password reset link appears to be invalid.') . $request_msg); 777 $errors->add( 'expiredkey', __( '<strong>Error</strong>: Your password reset link has expired. Please request a new link below.' ) ); 778 //$errors->add('invalidkey', __('Your password reset link appears to be invalid.') . $request_msg); 778 779 //wp_redirect( site_url( 'wp-login.php?action=lostpassword&error=expiredkey' ) ); 779 780 } else { 780 $errors->add('expiredkey', __('Your password reset link has expired.') . $request_msg); 781 $errors->add( 'invalidkey', __( '<strong>Error</strong>: Your password reset link appears to be invalid. Please request a new link below.' ) ); 782 //$errors->add('expiredkey', __('Your password reset link has expired.') . $request_msg); 781 783 //wp_redirect( site_url( 'wp-login.php?action=lostpassword&error=invalidkey' ) ); 782 784 } … … 784 786 785 787 return [$rp_key, $rp_login, $rp_path, $user]; 786 787 788 } 788 789 -
ajax-login-and-registration-modal-popup/trunk/includes/class-core.php
r2892257 r3085209 86 86 87 87 if ( !is_customize_preview() && is_user_logged_in() ) { 88 return $atts['logged_in_message'];88 return esc_html($atts['logged_in_message']); 89 89 } 90 90 … … 92 92 93 93 if ( !$redirect_to && !empty( $_GET['redirect_to'] ) ) { 94 $redirect_to = urldecode($_GET['redirect_to']); 95 } 94 $redirect_to = urldecode($_GET['redirect_to']); 95 } 96 97 $redirect_to = wp_validate_redirect( $redirect_to, apply_filters( 'wp_safe_redirect_fallback', home_url(), 200 ) ); 96 98 97 99 ob_start(); 98 $this->render_form( true, $atts['default_tab'], $atts['role'], $atts['role_silent'], $ atts['redirect_to']);100 $this->render_form( true, $atts['default_tab'], $atts['role'], $atts['role_silent'], $redirect_to ); 99 101 return ob_get_clean( ); 100 102 } … … 108 110 109 111 if ( !is_customize_preview() && is_user_logged_in() ) { 110 return $atts['logged_in_message'];112 return esc_html($atts['logged_in_message']); 111 113 } 112 114 -
ajax-login-and-registration-modal-popup/trunk/includes/class-wpml.php
r2892257 r3085209 127 127 128 128 $section_name = 'messages'; 129 $option_name = str_replace('lrm_', $option_name);129 $option_name = str_replace('lrm_', '', $option_name); 130 130 if ( false !== strpos($option_name, 'mails') ) { 131 131 $section_name = 'mails'; 132 } elseif ( false !== strpos($option_name, 'm ails') ) {132 } elseif ( false !== strpos($option_name, 'messages_pro') ) { 133 133 $section_name = 'messages_pro'; 134 134 } -
ajax-login-and-registration-modal-popup/trunk/readme.txt
r2892257 r3085209 3 3 Tags: login, registration, register, lost password, modal, popup, ajax, form 4 4 Requires at least: 4.1 5 Tested up to: 6. 25 Tested up to: 6.5.3 6 6 Requires PHP: 5.5 7 7 Stable tag: trunk … … 211 211 == Changelog == 212 212 213 = VER 2.24 - 12/05/2024 = 214 215 - XSS Vulnerability fix 216 - Tested with WordPress version to 6.5.3 217 213 218 = VER 2.23 - 02/03/2023 = 214 219 -
ajax-login-and-registration-modal-popup/trunk/views/form-parts/login.php
r2729353 r3085209 61 61 </div> 62 62 63 <input type="hidden" name="redirect_to" value="<?= $redirect_to; ?>">63 <input type="hidden" name="redirect_to" value="<?= esc_attr($redirect_to); ?>"> 64 64 <input type="hidden" name="lrm_action" value="login"> 65 65 <input type="hidden" name="wp-submit" value="1"> -
ajax-login-and-registration-modal-popup/trunk/views/form-parts/lost-password.php
r2448517 r3085209 8 8 <?php $email_label = esc_attr( lrm_setting('messages/lost_password/email', true) ); ?> 9 9 <label class="image-replace lrm-email lrm-ficon-mail" title="<?= $email_label; ?>"></label> 10 <input class="full-width has-padding has-border" name="user_login" type="text" <?= $fields_required; ?> placeholder="<?= $email_label; ?>" data-autofocus="1" aria-label="<?= $email_label; ?>">10 <input class="full-width has-padding has-border" name="user_login" type="text" <?= $fields_required; ?> placeholder="<?= esc_attr($email_label); ?>" data-autofocus="1" aria-label="<?= esc_attr($email_label); ?>"> 11 11 <span class="lrm-error-message"></span> 12 12 </div> -
ajax-login-and-registration-modal-popup/trunk/views/form-parts/register.php
r2892257 r3085209 110 110 <option value=""><?php echo lrm_setting('messages/registration/user_role', true); ?></option> 111 111 <?php foreach ( $active_roles_list as $active_role_key => $active_role_label ) : ?> 112 <option value="<?= $active_role_key; ?>" data-label="<?= esc_attr($active_role_label); ?>" <?php selected($active_role_label, $role) ?>><?= $active_role_label; ?></option>112 <option value="<?= esc_html($active_role_key); ?>" data-label="<?= esc_attr($active_role_label); ?>" <?php selected($active_role_label, $role) ?>><?= $active_role_label; ?></option> 113 113 <?php endforeach; ?> 114 114 </select> … … 154 154 <div class="fieldset fieldset--submit <?= esc_attr($fieldset_submit_class); ?>"> 155 155 <button class="full-width has-padding" type="submit"> 156 <?php echo lrm_setting('messages/registration/button', true); ?>156 <?php echo esc_html( lrm_setting('messages/registration/button', true) ); ?> 157 157 </button> 158 158 </div> … … 166 166 </div> 167 167 168 <input type="hidden" name="redirect_to" value="<?= $redirect_to; ?>">168 <input type="hidden" name="redirect_to" value="<?= esc_attr($redirect_to); ?>"> 169 169 <input type="hidden" name="lrm_action" value="signup"> 170 170 <input type="hidden" name="wp-submit" value="1"> -
ajax-login-and-registration-modal-popup/trunk/views/form.php
r2892257 r3085209 36 36 ?> 37 37 --> 38 <div class="lrm-main lrm-font-<?= $icons_class; ?> <?php echo !$is_inline ? 'lrm-user-modal' : 'lrm-inline is-visible'; ?> <?= esc_attr($extra_main_class); ?>" <?php echo !$is_inline ? 'style="visibility: hidden;"' : ''?>>38 <div class="lrm-main lrm-font-<?= esc_attr($icons_class); ?> <?php echo !$is_inline ? 'lrm-user-modal' : 'lrm-inline is-visible'; ?> <?= esc_attr($extra_main_class); ?>" <?php echo !$is_inline ? 'style="visibility: hidden;"' : ''?>> 39 39 <!--<div class="lrm-user-modal" style="visibility: hidden;"> this is the entire modal form, including the background --> 40 40
Note: See TracChangeset
for help on using the changeset viewer.