$field ) {
@@ -166,7 +166,7 @@ class="wpuf-btn-primary wpuf-absolute wpuf-top-[50%] wpuf-left-[50%] wpuf--trans
?>
-
+
diff --git a/includes/Fields/Form_Field_reCaptcha.php b/includes/Fields/Form_Field_reCaptcha.php
index f388466e8..41cccccee 100755
--- a/includes/Fields/Form_Field_reCaptcha.php
+++ b/includes/Fields/Form_Field_reCaptcha.php
@@ -69,7 +69,7 @@ function wpufRecaptchaCallback(token) {
if ( $is_invisible ) { ?>
-
+
+
diff --git a/includes/Fields/Form_Pro_Upgrade_Fields.php b/includes/Fields/Form_Pro_Upgrade_Fields.php
index 7ce316b66..2e628a47f 100755
--- a/includes/Fields/Form_Pro_Upgrade_Fields.php
+++ b/includes/Fields/Form_Pro_Upgrade_Fields.php
@@ -94,7 +94,7 @@ public function __construct() {
*/
class Form_Field_Phone extends Form_Field_Pro {
public function __construct() {
- $this->name = __( 'Phone Field', 'wpuf-pro' );
+ $this->name = __( 'Phone Field', 'wp-user-frontend' );
$this->input_type = 'phone_field';
$this->icon = 'phone';
}
diff --git a/includes/Frontend/Payment.php b/includes/Frontend/Payment.php
index 6c63e2476..625230859 100644
--- a/includes/Frontend/Payment.php
+++ b/includes/Frontend/Payment.php
@@ -475,9 +475,6 @@ public static function insert_payment( $data, $transaction_id = 0, $recurring =
global $wpdb;
$user_id = get_current_user_id();
//check if it's already there
- $sql = $wpdb->prepare( 'SELECT transaction_id
- FROM ' . $wpdb->prefix . 'wpuf_transaction
- WHERE transaction_id = %s LIMIT 1', $transaction_id );
$result = $wpdb->get_row( $wpdb->prepare( 'SELECT transaction_id
FROM ' . $wpdb->prefix . 'wpuf_transaction
WHERE transaction_id = %s LIMIT 1', $transaction_id ) );
@@ -628,18 +625,22 @@ private function get_user_notification_content( $payment_type, $user, $info ) {
switch ( $payment_type ) {
case 'trial':
+ // translators: %s is the site name
$subject = sprintf( __( '[%s] Your Trial Subscription is Active', 'wp-user-frontend' ), $site_name );
$message = sprintf(
- __( 'Hello %s,
Your trial subscription has been activated successfully at %s.
Thank you!', 'wp-user-frontend' ),
+ // translators: %1$s is the user display name, %2$s is the site name
+ __( 'Hello %1$s,
Your trial subscription has been activated successfully at %2$s.
Thank you!', 'wp-user-frontend' ),
$user->display_name,
$site_name
);
break;
case 'subscription':
+ // translators: %s is the site name
$subject = sprintf( __( '[%s] Payment Confirmation - Subscription', 'wp-user-frontend' ), $site_name );
$message = sprintf(
- __( 'Hello %s,
Thank you for your payment of %s for your subscription at %s.
Your subscription is now active.
Thank you!', 'wp-user-frontend' ),
+ // translators: %1$s is the user display name, %2$s is the payment amount, %3$s is the site name
+ __( 'Hello %1$s,
Thank you for your payment of %2$s for your subscription at %3$s.
Your subscription is now active.
Thank you!', 'wp-user-frontend' ),
$user->display_name,
$amount,
$site_name
@@ -647,9 +648,11 @@ private function get_user_notification_content( $payment_type, $user, $info ) {
break;
case 'post':
+ // translators: %s is the site name
$subject = sprintf( __( '[%s] Payment Confirmation - Post Submission', 'wp-user-frontend' ), $site_name );
$message = sprintf(
- __( 'Hello %s,
Thank you for your payment of %s for post submission at %s.
Your post has been submitted successfully.
Thank you!', 'wp-user-frontend' ),
+ // translators: %1$s is the user display name, %2$s is the payment amount, %3$s is the site name
+ __( 'Hello %1$s,
Thank you for your payment of %2$s for post submission at %3$s.
Your post has been submitted successfully.
Thank you!', 'wp-user-frontend' ),
$user->display_name,
$amount,
$site_name
@@ -657,9 +660,11 @@ private function get_user_notification_content( $payment_type, $user, $info ) {
break;
default:
+ // translators: %s is the site name
$subject = sprintf( __( '[%s] Payment Confirmation', 'wp-user-frontend' ), $site_name );
$message = sprintf(
- __( 'Hello %s,
Thank you for your payment of %s at %s.
Thank you!', 'wp-user-frontend' ),
+ // translators: %1$s is the user display name, %2$s is the payment amount, %3$s is the site name
+ __( 'Hello %1$s,
Thank you for your payment of %2$s at %3$s.
Thank you!', 'wp-user-frontend' ),
$user->display_name,
$amount,
$site_name
@@ -815,6 +820,7 @@ private function get_invoice_item_name( $info ) {
$post = get_post( $info['post_id'] );
if ( $post ) {
$item_name = mb_strimwidth( $post->post_title, 0, 40, '...' );
+ // translators: %s is the post title
return sprintf( __( 'Payment for post submission (%s)', 'wp-user-frontend' ), $item_name );
}
}
@@ -822,6 +828,7 @@ private function get_invoice_item_name( $info ) {
if ( isset( $info['pack_id'] ) && $info['pack_id'] > 0 ) {
$pack = get_post( $info['pack_id'] );
if ( $pack ) {
+ // translators: %s is the subscription pack title
return sprintf( __( 'Subscription: %s', 'wp-user-frontend' ), $pack->post_title );
}
}
@@ -848,6 +855,7 @@ private function send_invoice_email( $pdf_file, $user_email, $data = array() ) {
$send_attachment = wpuf_get_option( 'send_attachment', 'wpuf_payment_invoices', 'on' );
if ( empty( $subj ) ) {
+ // translators: %s is the site name
$subj = sprintf( __( '[%s] Your Payment Invoice', 'wp-user-frontend' ), get_bloginfo( 'name' ) );
}
diff --git a/includes/Frontend_Render_Form.php b/includes/Frontend_Render_Form.php
index 61d67e2dc..b508eec77 100644
--- a/includes/Frontend_Render_Form.php
+++ b/includes/Frontend_Render_Form.php
@@ -127,6 +127,7 @@ public function preview_form() {
if ( $form_id ) {
wp_enqueue_script( 'jquery' );
+ wp_register_style( 'wpuf-frontend-forms', plugins_url( 'assets/css/frontend-forms.css', __DIR__ ) );
wp_enqueue_style( 'wpuf-frontend-forms' );
?>
@@ -134,8 +135,8 @@ public function preview_form() {
-
__( 'Form Preview', 'wp-user-frontend' )
-
+
+
-
+
diff --git a/includes/Integrations/Events_Calendar/Compatibility/TEC_V6_Compatibility.php b/includes/Integrations/Events_Calendar/Compatibility/TEC_V6_Compatibility.php
index fa98296e5..3ef132602 100644
--- a/includes/Integrations/Events_Calendar/Compatibility/TEC_V6_Compatibility.php
+++ b/includes/Integrations/Events_Calendar/Compatibility/TEC_V6_Compatibility.php
@@ -154,7 +154,7 @@ private function convert_form_data_to_orm_format( $form_data, $meta_vars = [] )
$start_date = $this->format_date_for_tec( $all_data['_EventStartDate'] );
if ( $start_date ) {
// Set end date to same day at 23:59:59
- $end_date = date( 'Y-m-d 23:59:59', strtotime( $start_date ) );
+ $end_date = gmdate( 'Y-m-d 23:59:59', strtotime( $start_date ) );
$orm_args['end_date'] = $end_date;
}
}
@@ -587,7 +587,7 @@ public function format_date_for_tec( $date_string ) {
// Fallback to WordPress date parsing
$timestamp = strtotime( $date_string );
if ( $timestamp !== false ) {
- $formatted = date( 'Y-m-d H:i:s', $timestamp );
+ $formatted = gmdate( 'Y-m-d H:i:s', $timestamp );
return $formatted;
}
diff --git a/includes/Integrations/Events_Calendar/Templates/Event_Form_Template.php b/includes/Integrations/Events_Calendar/Templates/Event_Form_Template.php
index 8939c6ad6..7f704e727 100644
--- a/includes/Integrations/Events_Calendar/Templates/Event_Form_Template.php
+++ b/includes/Integrations/Events_Calendar/Templates/Event_Form_Template.php
@@ -292,8 +292,9 @@ public function get_form_settings() {
'edit_post_status' => 'publish',
'edit_redirect_to' => 'same',
'update_message' => sprintf(
+ // translators: %1$s is opening link tag, %2$s is closing link tag
__(
- 'Event has been updated successfully. %sView event%s',
+ 'Event has been updated successfully. %1$sView event%2$s',
'wp-user-frontend'
),
diff --git a/includes/Integrations/Events_Calendar/Validators/Date_Validator.php b/includes/Integrations/Events_Calendar/Validators/Date_Validator.php
index f71ee52de..3634f6dd4 100644
--- a/includes/Integrations/Events_Calendar/Validators/Date_Validator.php
+++ b/includes/Integrations/Events_Calendar/Validators/Date_Validator.php
@@ -101,7 +101,8 @@ private function validate_date_format( $date_data ) {
if ( isset( $date_data[ $field ] ) ) {
$value = $date_data[ $field ];
if ( !$this->is_valid_time_value( $value, $field ) ) {
- $errors[] = sprintf(
+ $errors[] = sprintf(
+ // translators: %s is the field name (e.g., StartTime, EndTime)
__( 'Time field "%s" is not valid.', 'wp-user-frontend' ),
$field
);
@@ -336,6 +337,7 @@ public function validate_field( $date_data, $field ) {
case 'EventEndDate':
if ( !isset( $date_data[ $field ] ) || !$this->is_valid_date_format( $date_data[ $field ] ) ) {
$errors[] = sprintf(
+ // translators: %s is the field name (e.g., StartDate, EndDate)
__( 'Event %s format is not valid.', 'wp-user-frontend' ),
str_replace( 'Event', '', str_replace( 'Date', '', $field ) )
);
@@ -344,8 +346,9 @@ public function validate_field( $date_data, $field ) {
case 'EventStartHour':
case 'EventEndHour':
- if ( isset( $date_data[ $field ] ) && !$this->is_valid_time_value( $date_data[ $field ], $field ) ) {
+ if ( isset( $date_data[ $field ] ) && !$this->is_valid_time_value( $date_data[ $field ], $field ) ) {
$errors[] = sprintf(
+ // translators: %s is the field name (e.g., StartHour, EndHour)
__( 'Event %s must be between 0 and 23.', 'wp-user-frontend' ),
str_replace( 'Event', '', $field )
);
@@ -355,7 +358,8 @@ public function validate_field( $date_data, $field ) {
case 'EventStartMinute':
case 'EventEndMinute':
if ( isset( $date_data[ $field ] ) && !$this->is_valid_time_value( $date_data[ $field ], $field ) ) {
- $errors[] = sprintf(
+ $errors[] = sprintf(
+ // translators: %s is the field name (e.g., StartMinute, EndMinute)
__( 'Event %s must be between 0 and 59.', 'wp-user-frontend' ),
str_replace( 'Event', '', $field )
);
diff --git a/includes/Integrations/Events_Calendar/Validators/Event_Validator.php b/includes/Integrations/Events_Calendar/Validators/Event_Validator.php
index 171df5bcf..90457fd51 100644
--- a/includes/Integrations/Events_Calendar/Validators/Event_Validator.php
+++ b/includes/Integrations/Events_Calendar/Validators/Event_Validator.php
@@ -71,7 +71,8 @@ private function validate_required_fields( $event_data ) {
foreach ( $this->required_fields as $field ) {
if ( !isset( $event_data[ $field ] ) || empty( $event_data[ $field ] ) ) {
- $errors[] = sprintf(
+ $errors[] = sprintf(
+ // translators: %s is the field name
__( 'Required field "%s" is missing or empty.', 'wp-user-frontend' ),
$field
);
@@ -99,7 +100,8 @@ private function validate_date_ranges( $event_data ) {
foreach ( $date_fields as $field ) {
if ( !isset( $event_data[ $field ] ) ) {
- $errors[] = sprintf(
+ $errors[] = sprintf(
+ // translators: %s is the field name
__( 'Date field "%s" is missing.', 'wp-user-frontend' ),
$field
);
@@ -136,17 +138,20 @@ private function validate_date_ranges( $event_data ) {
$is_minute_field = strpos( $field, 'Minute' ) !== false;
if ( !is_numeric( $value ) || $value < 0 ) {
- $errors[] = sprintf(
+ $errors[] = sprintf(
+ // translators: %s is the field name
__( 'Time field "%s" must be a valid number.', 'wp-user-frontend' ),
$field
);
} elseif ( $is_hour_field && $value > 23 ) {
- $errors[] = sprintf(
+ $errors[] = sprintf(
+ // translators: %s is the field name
__( 'Hour field "%s" must be between 0 and 23.', 'wp-user-frontend' ),
$field
);
} elseif ( $is_minute_field && $value > 59 ) {
- $errors[] = sprintf(
+ $errors[] = sprintf(
+ // translators: %s is the field name
__( 'Minute field "%s" must be between 0 and 59.', 'wp-user-frontend' ),
$field
);
@@ -286,7 +291,8 @@ public function validate_field( $event_data, $field ) {
case 'EventStartDate':
case 'EventEndDate':
if ( !isset( $event_data[ $field ] ) || !$this->is_valid_date( $event_data[ $field ] ) ) {
- $errors[] = sprintf(
+ $errors[] = sprintf(
+ // translators: %s is the event field type (e.g., 'Start', 'End')
__( 'Event %s is not valid.', 'wp-user-frontend' ),
str_replace( 'Event', '', str_replace( 'Date', '', $field ) )
);
@@ -296,12 +302,14 @@ public function validate_field( $event_data, $field ) {
case 'EventStartHour':
case 'EventEndHour':
if ( !isset( $event_data[ $field ] ) || !is_numeric( $event_data[ $field ] ) ) {
- $errors[] = sprintf(
+ $errors[] = sprintf(
+ // translators: %s is the event field type (e.g., 'StartHour', 'EndHour')
__( 'Event %s must be a valid number.', 'wp-user-frontend' ),
str_replace( 'Event', '', $field )
);
} elseif ( $event_data[ $field ] < 0 || $event_data[ $field ] > 23 ) {
- $errors[] = sprintf(
+ $errors[] = sprintf(
+ // translators: %s is the event field type (e.g., 'StartHour', 'EndHour')
__( 'Event %s must be between 0 and 23.', 'wp-user-frontend' ),
str_replace( 'Event', '', $field )
);
@@ -311,12 +319,14 @@ public function validate_field( $event_data, $field ) {
case 'EventStartMinute':
case 'EventEndMinute':
if ( !isset( $event_data[ $field ] ) || !is_numeric( $event_data[ $field ] ) ) {
- $errors[] = sprintf(
+ $errors[] = sprintf(
+ // translators: %s is the event field type (e.g., 'StartMinute', 'EndMinute')
__( 'Event %s must be a valid number.', 'wp-user-frontend' ),
str_replace( 'Event', '', $field )
);
} elseif ( $event_data[ $field ] < 0 || $event_data[ $field ] > 59 ) {
- $errors[] = sprintf(
+ $errors[] = sprintf(
+ // translators: %s is the event field type (e.g., 'StartMinute', 'EndMinute')
__( 'Event %s must be between 0 and 59.', 'wp-user-frontend' ),
str_replace( 'Event', '', $field )
);
diff --git a/includes/Integrations/TEC_Venue_Organizer_Fix.php b/includes/Integrations/TEC_Venue_Organizer_Fix.php
index 2ef568da7..40c3da999 100644
--- a/includes/Integrations/TEC_Venue_Organizer_Fix.php
+++ b/includes/Integrations/TEC_Venue_Organizer_Fix.php
@@ -56,7 +56,7 @@ public function output_inline_script() {
return;
}
- echo '';
+ echo '';
}
/**
diff --git a/includes/Render_Form.php b/includes/Render_Form.php
index e37fde2c9..853078bb2 100644
--- a/includes/Render_Form.php
+++ b/includes/Render_Form.php
@@ -866,7 +866,7 @@ public function text( $attr, $post_id, $type = 'post', $form_id = null ) {
@@ -1498,7 +1498,7 @@ public function taxonomy( $attr, $post_id, $form_id ) {
@@ -1652,7 +1652,7 @@ public static function recaptcha( $attr, $post_id, $form_id ) {
}
if ( $enable_invisible_recaptcha ) { ?>
-
+