mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- code review;
This commit is contained in:
@@ -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>';
|
||||
|
||||
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user