diff --git a/includes/admin/templates/extensions.php b/includes/admin/templates/extensions.php
index d392c867..fb388111 100644
--- a/includes/admin/templates/extensions.php
+++ b/includes/admin/templates/extensions.php
@@ -1,84 +1,87 @@
- 'https://ultimatemember.com/extensions/bbpress/',
+ 'url' => 'https://ultimatemember.com/extensions/bbpress/',
'img' => 'bbpress.svg',
'name' => 'bbPress',
'desc' => 'With the bbPress extension you can integrate Ultimate Member with bbPress',
);
$premium['profile-completeness'] = array(
- 'url' => 'https://ultimatemember.com/extensions/profile-completeness/',
+ 'url' => 'https://ultimatemember.com/extensions/profile-completeness/',
'img' => 'profile-completeness.svg',
'name' => 'Profile Completeness',
'desc' => 'Encourage or force users to complete their profile on your site',
);
$premium['verified-users'] = array(
- 'url' => 'https://ultimatemember.com/extensions/verified-users/',
+ 'url' => 'https://ultimatemember.com/extensions/verified-users/',
'img' => 'verified-users.svg',
'name' => 'Verified Users',
'desc' => 'Add a user verficiation system to your site so user accounts can be verified',
);
$premium['friends'] = array(
- 'url' => 'https://ultimatemember.com/extensions/friends/',
+ 'url' => 'https://ultimatemember.com/extensions/friends/',
'img' => 'friends.svg',
'name' => 'Friends',
'desc' => 'Increase user interaction on your site by allowing users to become friends',
);
$premium['woocommerce'] = array(
- 'url' => 'https://ultimatemember.com/extensions/woocommerce/',
+ 'url' => 'https://ultimatemember.com/extensions/woocommerce/',
'img' => 'woocommerce.png',
'name' => 'WooCommerce',
'desc' => 'Integrates the popular e-commerce plugin WooCommerce with Ultimate Member',
);
$premium['notices'] = array(
- 'url' => 'https://ultimatemember.com/extensions/notices/',
+ 'url' => 'https://ultimatemember.com/extensions/notices/',
'img' => 'notices.svg',
'name' => 'Notices',
'desc' => 'Alert users to important information using conditional notices',
);
$premium['followers'] = array(
- 'url' => 'https://ultimatemember.com/extensions/followers/',
+ 'url' => 'https://ultimatemember.com/extensions/followers/',
'img' => 'followers.svg',
'name' => 'Followers',
'desc' => 'Increase user interaction on your site by allowing users to follow each other',
);
$premium['mycred'] = array(
- 'url' => 'https://ultimatemember.com/extensions/mycred/',
+ 'url' => 'https://ultimatemember.com/extensions/mycred/',
'img' => 'mycred.png',
'name' => 'myCRED',
'desc' => 'With the myCRED extension you can integrate Ultimate Member with myCRED',
);
$premium['private-messages'] = array(
- 'url' => 'https://ultimatemember.com/extensions/private-messages/',
+ 'url' => 'https://ultimatemember.com/extensions/private-messages/',
'img' => 'private-messages.svg',
'name' => 'Private Messages',
'desc' => 'Add a private messaging system to your site & allow users to message each other',
);
$premium['social-activity'] = array(
- 'url' => 'https://ultimatemember.com/extensions/social-activity/',
+ 'url' => 'https://ultimatemember.com/extensions/social-activity/',
'img' => 'social-activity.svg',
'name' => 'Social Activity',
'desc' => 'Let users create public wall posts & see the activity of other users',
);
$premium['social-login'] = array(
- 'url' => 'https://ultimatemember.com/extensions/social-login/',
+ 'url' => 'https://ultimatemember.com/extensions/social-login/',
'img' => 'social-login.svg',
'name' => 'Social Login',
'desc' => 'Let users register & login to your site via Facebook, Twitter, G+, LinkedIn, and more',
);
$premium['user-tags'] = array(
- 'url' => 'https://ultimatemember.com/extensions/user-tags/',
+ 'url' => 'https://ultimatemember.com/extensions/user-tags/',
'img' => 'user-tags.svg',
'name' => 'User Tags',
'desc' => 'With this extension you can add a user tag system to your website',
@@ -86,7 +89,7 @@ $premium['user-tags'] = array(
$premium['mailchimp'] = array(
- 'url' => 'https://ultimatemember.com/extensions/mailchimp/',
+ 'url' => 'https://ultimatemember.com/extensions/mailchimp/',
'img' => 'mailchimp.png',
'name' => 'MailChimp',
'desc' => 'Allow users to subscribe to your mailchimp lists when they signup on your site',
@@ -94,105 +97,105 @@ $premium['mailchimp'] = array(
$premium['user-reviews'] = array(
- 'url' => 'https://ultimatemember.com/extensions/user-reviews/',
+ 'url' => 'https://ultimatemember.com/extensions/user-reviews/',
'img' => 'user-reviews.svg',
'name' => 'User Reviews',
'desc' => 'Allow users to rate & review each other using a 5 star rate/review system',
);
$premium['real-time-notifications'] = array(
- 'url' => 'https://ultimatemember.com/extensions/real-time-notifications/',
+ 'url' => 'https://ultimatemember.com/extensions/real-time-notifications/',
'img' => 'real-time-notifications.svg',
'name' => 'Real-time Notifications',
'desc' => 'Add a notifications system to your site so users can receive real-time notifications',
);
$premium['private-content'] = array(
- 'url' => 'https://ultimatemember.com/extensions/private-content/',
+ 'url' => 'https://ultimatemember.com/extensions/private-content/',
'img' => 'private-content.svg',
'name' => 'Private Content',
'desc' => 'Display private content to logged in users that only they can access',
);
$premium['groups'] = array(
- 'url' => 'https://ultimatemember.com/extensions/groups/',
+ 'url' => 'https://ultimatemember.com/extensions/groups/',
'img' => 'groups.svg',
'name' => 'Groups',
'desc' => 'Allow users to create and join groups around shared topics, interests etc.',
);
$premium['user-photos'] = array(
- 'url' => 'https://ultimatemember.com/extensions/user-photos/',
+ 'url' => 'https://ultimatemember.com/extensions/user-photos/',
'name' => 'User Photos',
'img' => 'user-photos.svg',
'desc' => 'Allow users to upload photos to their profile',
);
$premium['user-bookmarks'] = array(
- 'url' => 'https://ultimatemember.com/extensions/user-bookmarks/',
+ 'url' => 'https://ultimatemember.com/extensions/user-bookmarks/',
'img' => 'user-bookmarks.svg',
'name' => 'User Bookmarks',
'desc' => 'Allow users to bookmark content from your website',
);
$premium['unsplash'] = array(
- 'url' => 'https://ultimatemember.com/extensions/unsplash/',
+ 'url' => 'https://ultimatemember.com/extensions/unsplash/',
'img' => 'unsplash.png',
'name' => 'Unsplash',
'desc' => 'Allow users to select a profile cover photo from Unsplash from their profile',
);
$premium['user-locations'] = array(
- 'url' => 'https://ultimatemember.com/extensions/user-locations/',
+ 'url' => 'https://ultimatemember.com/extensions/user-locations/',
'img' => 'user-locations.svg',
'name' => 'User Locations',
'desc' => 'Using the Google Maps API, display users on a map on the member directory page and allow users to add their location via their profile',
);
$premium['user-notes'] = array(
- 'url' => 'https://ultimatemember.com/extensions/user-notes/',
+ 'url' => 'https://ultimatemember.com/extensions/user-notes/',
'img' => 'user-notes.svg',
'name' => 'User Notes',
'desc' => 'Allow users to create public and private notes from their profile',
);
$premium['profile-tabs'] = array(
- 'url' => 'https://ultimatemember.com/extensions/profile-tabs/',
+ 'url' => 'https://ultimatemember.com/extensions/profile-tabs/',
'img' => 'profile-tabs.svg',
'name' => 'Profile Tabs',
'desc' => 'Add custom tabs to profiles',
);
-$premium['stripe'] = array(
- 'url' => 'https://ultimatemember.com/extensions/stripe/',
- 'img' => 'stripe.png',
- 'name' => 'Stripe',
- 'desc' => 'Sell paid memberships to access your website via Stripe subscriptions',
-);
+//$premium['stripe'] = array(
+// 'url' => 'https://ultimatemember.com/extensions/stripe/',
+// 'img' => 'stripe.png',
+// 'name' => 'Stripe',
+// 'desc' => 'Sell paid memberships to access your website via Stripe subscriptions',
+//);
$free['jobboardwp'] = array(
- 'url' => 'https://wordpress.org/plugins/um-jobboardwp',
+ 'url' => 'https://wordpress.org/plugins/um-jobboardwp',
'img' => 'jobboardwp.png',
'name' => 'JobBoardWP',
'desc' => 'Integrates Ultimate Member with the job board plugin JobBoardWP',
);
$free['forumwp'] = array(
- 'url' => 'https://ultimatemember.com/extensions/forumwp/',
+ 'url' => 'https://ultimatemember.com/extensions/forumwp/',
'img' => 'forumwp.png',
'name' => 'ForumWP',
'desc' => 'Integrates Ultimate Member with the forum plugin ForumWP',
);
$free['online-users'] = array(
- 'url' => 'https://ultimatemember.com/extensions/online-users/',
+ 'url' => 'https://ultimatemember.com/extensions/online-users/',
'img' => 'online-users.svg',
'name' => 'Online Users',
- 'desc' => 'Display online users on your site so users can see who is online'
+ 'desc' => 'Display online users on your site so users can see who is online',
);
$free['google-recaptcha'] = array(
- 'url' => 'https://ultimatemember.com/extensions/google-recaptcha/',
+ 'url' => 'https://ultimatemember.com/extensions/google-recaptcha/',
'img' => 'google-recaptcha.png',
'name' => 'Google reCAPTCHA',
'desc' => 'Stop bots on your registration & login forms with Google reCAPTCHA',
@@ -203,7 +206,23 @@ $free['terms-conditions'] = array(
'img' => 'terms-conditions.svg',
'name' => 'Terms & Conditions',
'desc' => 'Add terms & conditions to your registration form',
-); ?>
+);
+
+$classes = array(
+ 'free' => '',
+ 'premium' => '',
+);
+$loop = $premium;
+// phpcs:disable WordPress.Security.NonceVerification -- Don't need nonce for the filter.
+if ( ! isset( $_REQUEST['filter'] ) || 'premium' === sanitize_key( $_REQUEST['filter'] ) ) {
+ $loop = $premium;
+ $classes['premium'] = 'current';
+} elseif ( 'free' === sanitize_key( $_REQUEST['filter'] ) ) {
+ $loop = $free;
+ $classes['free'] = 'current';
+}
+// phpcs:enable WordPress.Security.NonceVerification -- Don't need nonce for the filter.
+?>
@@ -212,13 +231,13 @@ $free['terms-conditions'] = array(
@@ -226,64 +245,36 @@ $free['terms-conditions'] = array(
- $info ) { ?>
+ $info ) { ?>
+
+
+
+
-
-
-
-
-
-
- get_allowed_html( 'admin_notice' ) ); ?>
-
-
-
-
-
-
-
-
-
+
+ get_allowed_html( 'admin_notice' ) ); ?>
-
- $info ) { ?>
-
-
-
-
-
-
-
- get_allowed_html( 'admin_notice' ) ); ?>
-
-
-
+
-
-
-
+
+
diff --git a/includes/core/class-fields.php b/includes/core/class-fields.php
index 24b54400..8554b9cd 100644
--- a/includes/core/class-fields.php
+++ b/includes/core/class-fields.php
@@ -499,73 +499,100 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
update_option( 'um_fields', $all_fields );
}
+ /**
+ * Generate aria errors attributes.
+ *
+ * @param bool $is_error
+ * @param string $field_id
+ *
+ * @return string
+ */
+ public function aria_valid_attributes( $is_error, $field_id, $context = 'error' ) {
+ //$context
+ $attr = ' aria-invalid="false" ';
+ if ( $is_error ) {
+ if ( 'notice' === $context ) {
+ $errormessage_id = 'um-notice-for-' . $field_id;
+ } else {
+ $errormessage_id = 'um-error-for-' . $field_id;
+ }
+ $attr = ' aria-invalid="true" aria-errormessage="' . esc_attr( $errormessage_id ) . '" ';
+ }
+ return $attr;
+ }
/**
- * Print field error
+ * Print field error.
+ *
+ * @since 2.6.12 Added $input_id attribute.
*
* @param string $text
+ * @param string $input_id
* @param bool $force_show
*
* @return string
*/
- public function field_error( $text, $force_show = false ) {
-
+ public function field_error( $text, $input_id, $force_show = false ) {
if ( empty( $text ) ) {
return '';
}
+ $error_id = 'um-error-for-' . $input_id;
+
if ( $force_show ) {
- $output = '
' . wp_kses( $text, UM()->get_allowed_html( 'templates' ) ) . '
';
+ $output = '
' . wp_kses( $text, UM()->get_allowed_html( 'templates' ) ) . '
';
return $output;
}
if ( isset( $this->set_id ) && UM()->form()->processing === $this->set_id ) {
- $output = '
' . wp_kses( $text, UM()->get_allowed_html( 'templates' ) ) . '
';
+ $output = '
' . wp_kses( $text, UM()->get_allowed_html( 'templates' ) ) . '
';
} else {
$output = '';
}
if ( ! UM()->form()->processing ) {
- $output = '
' . wp_kses( $text, UM()->get_allowed_html( 'templates' ) ) . '
';
+ $output = '
' . wp_kses( $text, UM()->get_allowed_html( 'templates' ) ) . '
';
}
return $output;
}
-
/**
- * Print field notice
+ * Print field notice.
+ *
+ * @since 2.6.12 Added $input_id attribute.
*
* @param string $text
+ * @param string $input_id
* @param bool $force_show
*
* @return string
*/
- public function field_notice( $text, $force_show = false ) {
-
+ public function field_notice( $text, $input_id, $force_show = false ) {
if ( empty( $text ) ) {
return '';
}
+ $notice_id = 'um-notice-for-' . $input_id;
+
if ( $force_show ) {
- $output = '
' . wp_kses( $text, UM()->get_allowed_html( 'templates' ) ) . '
';
+ $output = '
' . wp_kses( $text, UM()->get_allowed_html( 'templates' ) ) . '
';
return $output;
}
if ( isset( $this->set_id ) && UM()->form()->processing === $this->set_id ) {
- $output = '
' . wp_kses( $text, UM()->get_allowed_html( 'templates' ) ) . '
';
+ $output = '
' . wp_kses( $text, UM()->get_allowed_html( 'templates' ) ) . '
';
} else {
$output = '';
}
if ( ! UM()->form()->processing ) {
- $output = '
' . wp_kses( $text, UM()->get_allowed_html( 'templates' ) ) . '
';
+ $output = '
' . wp_kses( $text, UM()->get_allowed_html( 'templates' ) ) . '
';
}
return $output;
}
-
/**
* Checks if field has a server-side error
*
@@ -2353,7 +2380,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
$field_name = $key . $form_suffix;
$field_value = $this->field_value( $key, $default, $data );
- $output .= '
+ $output .= '
aria_valid_attributes( $this->is_error( $key ), $field_name ) . '/>
';
@@ -2362,9 +2389,9 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
}
if ( $this->is_error( $key ) ) {
- $output .= $this->field_error( $this->show_error( $key ) );
+ $output .= $this->field_error( $this->show_error( $key ), $field_name );
} elseif ( $this->is_notice( $key ) ) {
- $output .= $this->field_notice( $this->show_notice( $key ) );
+ $output .= $this->field_notice( $this->show_notice( $key ), $field_name );
}
$output .= '
';
@@ -2387,7 +2414,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
$field_name = $key . $form_suffix;
$field_value = $this->field_value( $key, $default, $data );
- $output .= '
+ $output .= '
aria_valid_attributes( $this->is_error( $key ), $field_name ) . '/>
';
@@ -2396,9 +2423,9 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
}
if ( $this->is_error( $key ) ) {
- $output .= $this->field_error( $this->show_error( $key ) );
+ $output .= $this->field_error( $this->show_error( $key ), $field_name );
} elseif ( $this->is_notice( $key ) ) {
- $output .= $this->field_notice( $this->show_notice( $key ) );
+ $output .= $this->field_notice( $this->show_notice( $key ), $field_name );
}
$output .= '
';
@@ -2428,14 +2455,14 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
$field_name = $key . $form_suffix;
$field_value = $this->field_value( $key, $default, $data );
- $output .= '
+ $output .= 'aria_valid_attributes( $this->is_error( $key ), $field_name ) . '/>
';
if ( $this->is_error( $key ) ) {
- $output .= $this->field_error( $this->show_error( $key ) );
+ $output .= $this->field_error( $this->show_error( $key ), $field_name );
} elseif ( $this->is_notice( $key ) ) {
- $output .= $this->field_notice( $this->show_notice( $key ) );
+ $output .= $this->field_notice( $this->show_notice( $key ), $field_name );
}
$output .= '';
@@ -2464,20 +2491,20 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
if ( UM()->options()->get( 'toggle_password' ) ) {
$output .= '
-
+ aria_valid_attributes( $this->is_error( $key ), $field_name ) . '/>
';
} else {
- $output .= '
+ $output .= 'aria_valid_attributes( $this->is_error( $key ), $field_name ) . '/>
';
}
if ( $this->is_error( $key ) ) {
- $output .= $this->field_error( $this->show_error( $key ) );
+ $output .= $this->field_error( $this->show_error( $key ), $field_name );
} elseif ( $this->is_notice( $key ) ) {
- $output .= $this->field_notice( $this->show_notice( $key ) );
+ $output .= $this->field_notice( $this->show_notice( $key ), $field_name );
}
$output .= '';
@@ -2502,20 +2529,20 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
if ( UM()->options()->get( 'toggle_password' ) ) {
$output .= '
-
+ aria_valid_attributes( $this->is_error( $key ), $field_name ) . '/>
';
} else {
- $output .= '
+ $output .= 'aria_valid_attributes( $this->is_error( $key ), $field_name ) . '/>
';
}
if ( $this->is_error( $key ) ) {
- $output .= $this->field_error( $this->show_error( $key ) );
+ $output .= $this->field_error( $this->show_error( $key ), $field_name );
} elseif ( $this->is_notice( $key ) ) {
- $output .= $this->field_notice( $this->show_notice( $key ) );
+ $output .= $this->field_notice( $this->show_notice( $key ), $field_name );
}
$output .= '';
@@ -2550,20 +2577,20 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
$field_value = $this->field_value( $key, $default, $data );
if ( UM()->options()->get( 'toggle_password' ) ) {
$output .= '
-
+ aria_valid_attributes( $this->is_error( $key ), $name ) . '/>
';
} else {
- $output .= '
+ $output .= 'aria_valid_attributes( $this->is_error( $key ), $name ) . '/>
';
}
if ( $this->is_error( $key ) ) {
- $output .= $this->field_error( $this->show_error( $key ) );
+ $output .= $this->field_error( $this->show_error( $key ), $name );
} elseif ( $this->is_notice( $key ) ) {
- $output .= $this->field_notice( $this->show_notice( $key ) );
+ $output .= $this->field_notice( $this->show_notice( $key ), $name );
}
$output .= '';
@@ -2604,17 +2631,17 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
}
if ( UM()->options()->get( 'toggle_password' ) ) {
- $output .= '
';
+ $output .= 'aria_valid_attributes( $this->is_error( $key ), $name ) . '/>
';
} else {
- $output .= '';
+ $output .= 'aria_valid_attributes( $this->is_error( $key ), $name ) . '/>';
}
$output .= '';
if ( $this->is_error( $key ) ) {
- $output .= $this->field_error( $this->show_error( $key ) );
+ $output .= $this->field_error( $this->show_error( $key ), $name );
} elseif ( $this->is_notice( $key ) ) {
- $output .= $this->field_notice( $this->show_notice( $key ) );
+ $output .= $this->field_notice( $this->show_notice( $key ), $name );
}
$output .= '';
@@ -2638,14 +2665,14 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
$field_name = $key . $form_suffix;
$field_value = $this->field_value( $key, $default, $data );
- $output .= '
+ $output .= 'aria_valid_attributes( $this->is_error( $key ), $field_name ) . '/>
';
if ( $this->is_error( $key ) ) {
- $output .= $this->field_error( $this->show_error( $key ) );
+ $output .= $this->field_error( $this->show_error( $key ), $field_name );
} elseif ( $this->is_notice( $key ) ) {
- $output .= $this->field_notice( $this->show_notice( $key ) );
+ $output .= $this->field_notice( $this->show_notice( $key ), $field_name );
}
$output .= '';
@@ -2684,14 +2711,14 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
$disabled_weekdays = '[' . implode( ',', $data['disabled_weekdays'] ) . ']';
}
- $output .= '
+ $output .= 'aria_valid_attributes( $this->is_error( $key ), $field_name ) . '/>
';
if ( $this->is_error( $key ) ) {
- $output .= $this->field_error( $this->show_error( $key ) );
+ $output .= $this->field_error( $this->show_error( $key ), $field_name );
} elseif ( $this->is_notice( $key ) ) {
- $output .= $this->field_notice( $this->show_notice( $key ) );
+ $output .= $this->field_notice( $this->show_notice( $key ), $field_name );
}
$output .= '';
@@ -2713,14 +2740,14 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
$field_name = $key . $form_suffix;
$field_value = $this->field_value( $key, $default, $data );
- $output .= '
+ $output .= 'aria_valid_attributes( $this->is_error( $key ), $field_name ) . '/>
';
if ( $this->is_error( $key ) ) {
- $output .= $this->field_error( $this->show_error( $key ) );
+ $output .= $this->field_error( $this->show_error( $key ), $field_name );
} elseif ( $this->is_notice( $key ) ) {
- $output .= $this->field_notice( $this->show_notice( $key ) );
+ $output .= $this->field_notice( $this->show_notice( $key ), $field_name );
}
$output .= '';
@@ -2826,7 +2853,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
}
}
}
- $output .= '';
+ $output .= '';
}
$output .= '';
@@ -2836,9 +2863,9 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
}
if ( $this->is_error( $key ) ) {
- $output .= $this->field_error( $this->show_error( $key ) );
+ $output .= $this->field_error( $this->show_error( $key ), $field_name );
} elseif ( $this->is_notice( $key ) ) {
- $output .= $this->field_notice( $this->show_notice( $key ) );
+ $output .= $this->field_notice( $this->show_notice( $key ), $field_name );
}
$output .= '';
@@ -2853,13 +2880,13 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
$output .= '';
- $output .= '
';
+ $output .= '
aria_valid_attributes( $this->is_error( $key ), $key ) . '>
';
$output .= '
';
if ( $this->is_error( $key ) ) {
- $output .= $this->field_error( $this->show_error( $key ) );
+ $output .= $this->field_error( $this->show_error( $key ), $key );
} elseif ( $this->is_notice( $key ) ) {
- $output .= $this->field_notice( $this->show_notice( $key ) );
+ $output .= $this->field_notice( $this->show_notice( $key ), $key );
}
$output .= '';
@@ -2906,7 +2933,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
$field_name = $key . $form_suffix;
- $output .= '';
+ $output .= 'aria_valid_attributes( $this->is_error( $key ), $field_name ) . '/>';
if ( isset( $data['label'] ) ) {
$output .= $this->field_label( $data['label'], $key, $data );
}
@@ -2991,9 +3018,9 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
}
/* end */
if ( $this->is_error( $key ) ) {
- $output .= $this->field_error( $this->show_error( $key ) );
+ $output .= $this->field_error( $this->show_error( $key ), $field_name );
} elseif ( $this->is_notice( $key ) ) {
- $output .= $this->field_notice( $this->show_notice( $key ) );
+ $output .= $this->field_notice( $this->show_notice( $key ), $field_name );
}
$output .= '';
@@ -3005,7 +3032,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
$field_name = $key . $form_suffix;
$file_field_value = $this->field_value( $key, $default, $data );
- $output .= '';
+ $output .= 'aria_valid_attributes( $this->is_error( $key ), $field_name ) . '/>';
if ( isset( $data['label'] ) ) {
$output .= $this->field_label( $data['label'], $key, $data );
}
@@ -3116,9 +3143,9 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
}
/* end */
if ( $this->is_error( $key ) ) {
- $output .= $this->field_error( $this->show_error( $key ) );
+ $output .= $this->field_error( $this->show_error( $key ), $field_name );
} elseif ( $this->is_notice( $key ) ) {
- $output .= $this->field_notice( $this->show_notice( $key ) );
+ $output .= $this->field_notice( $this->show_notice( $key ), $field_name );
}
$output .= '';
@@ -3335,7 +3362,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
$field_value = '';
- $output .= '