- code review;

This commit is contained in:
nikitasinelnikov
2020-08-10 11:40:30 +03:00
parent 05b008c767
commit dc281c2c0d
2 changed files with 8 additions and 2 deletions
+6 -2
View File
@@ -379,7 +379,9 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
*/
function field_error( $text, $force_show = false ) {
if( empty( $text ) ) return;
if ( empty( $text ) ) {
return '';
}
if ( $force_show ) {
$output = '<div class="um-field-error"><span class="um-field-arrow"><i class="um-faicon-caret-up"></i></span>' . esc_attr( $text ) . '</div>';
@@ -411,7 +413,9 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
*/
function field_notice( $text, $force_show = false ) {
if( empty( $text ) ) return;
if ( empty( $text ) ) {
return '';
}
if ( $force_show ) {
$output = '<div class="um-field-notice"><span class="um-field-arrow"><i class="um-faicon-caret-up"></i></span>' . esc_attr( $text ) . '</div>';
+2
View File
@@ -166,6 +166,7 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
- Fixed member directory roles in query (the case when selected some roles, but current user can see another only)
- Fixed member directory sorting
- Fixed member directory list dropdown init after changing view type
- Fixed member directory admin filtering by the 'user_registered' field
- Fixed validation when using HTML in textarea
- Fixed cleaning user old uploads
- Fixed conditional logic for file/image-type fields
@@ -174,6 +175,7 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
- Fixed getting extension updates on multisites
- Fixed the 'wp_authenticate_user' filter's variables (changed username string to WP_User object)
- Fixed SEO link canonical for the profile page
- Fixed displaying error & notice when the text is empty
- Deprecated JS event 'um_before_modal_removed', use wp.hooks action 'um_before_modal_removed' instead
= 2.1.6: June 1, 2020 =