PluginProbe
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor / 4.0.3
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor v4.0.3
4.0.3 4.0.2 4.0.1 4.0.0 3.16.6 3.16.5 3.16.4 3.16.3 3.16.2 3.16.1 3.16.0 3.15.9 3.9.9 3.9.5 3.9.6 3.9.7 3.9.8 1.1.7 1.1.8 1.1.9 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 All 341 releases
← All changes | admin/advanced-settings/includes/shortcodes/resend-activation.php +6 -5 3.9.8 → 4.0.3 View file →
@@ -1,5 +1,7 @@
1 1 <?php
2 +// Exit if accessed directly
3 +if ( ! defined( 'ABSPATH' ) ) exit;
2 4
3 5 add_shortcode( 'wppb-resend-activation', 'wppb_toolbox_resend_activation_url_handler' );
4 6 function wppb_toolbox_resend_activation_url_handler() {
5 7 $button_name = __('Resend activation email', 'profile-builder');
@@ -6,11 +8,11 @@
6 8 $output = '<form enctype="multipart/form-data" method="post" id="wppbc-resend_activation" class="wppb-user-forms" action="">';
7 9 $output .= '
8 10 <li class="wppb-form-field'. apply_filters( 'wppb_resend_activation_extra_css_class', '', 'resend_activation_email') .'">
9 11 <label for="username_email" style="padding-right: 30px;">'.__( 'Email', 'profile-builder' ).'</label>
10 - <input class="text-input" name="email" type="text" id="username_email" value="" '. apply_filters( 'wppb_resend_activation_extra_attr', '', __( 'Email', 'profile-builder' ), 'text' ) .'/>
12 + <input class="text-input" name="email" type="text" id="username_email" value="" '. esc_attr( apply_filters( 'wppb_resend_activation_extra_attr', '', __( 'Email', 'profile-builder' ), 'text' ) ) .'/>
11 13 <div style="padding-top: 20px;">
12 - <input name="resend_activation" type="submit" id="wppbc-resend-activation-button" class="submit button" value="'. $button_name . '" />
14 + <input name="resend_activation" type="submit" id="wppbc-resend-activation-button" class="submit button" value="'. esc_attr( $button_name ) . '" />
13 15 <input name="action" type="hidden" id="action" value="wppbc_resend_activation" />
14 16 <input type="hidden" name="wppb_nonce" value="'. esc_attr( wp_create_nonce( 'wppbc_resend_activation' ) ) . '" />
15 17 </div>
16 18 </li>
@@ -15,9 +17,8 @@
15 17 </div>
16 18 </li>
17 19 </form>';
18 20
19 -// return $output;
20 21 return apply_filters('wppb_resend_activation_form_before_content_output', $output);
21 22 }
22 23
23 24 add_action( 'init', 'wppb_toolbox_resend_activation_url', 999 );
@@ -27,11 +28,11 @@
27 28 $sql_result = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM " . $wpdb->base_prefix . "signups WHERE user_email = %s", sanitize_email( $_REQUEST['email'] ) ), ARRAY_A );
28 29
29 30 if ( $sql_result ){
30 31 wppb_signup_user_notification( trim( $sql_result['user_login'] ), trim( $sql_result['user_email'] ), $sql_result['activation_key'], $sql_result['meta'] );
31 - echo '<script> alert("Activation email sent!");</script>';
32 + echo '<script> alert("'. esc_html__( 'Activation email sent!', 'profile-builder' ) .'");</script>';
32 33 }
33 34 else {
34 - echo '<script> alert("No sign-up was made with that email!");</script>';
35 + echo '<script> alert("'. esc_html__( 'No sign-up was made with that email!', 'profile-builder' ) .'");</script>';
35 36 }
36 37 }
37 38 }