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>';
|
||||
|
||||
Reference in New Issue
Block a user