From 4dfcd4cea583301f24137f0ac08b2ddab3d07c29 Mon Sep 17 00:00:00 2001 From: nikitasinelnikov Date: Fri, 1 Mar 2019 16:35:08 +0200 Subject: [PATCH] - code review; --- includes/admin/core/class-admin-notices.php | 2 +- includes/core/class-fields.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/admin/core/class-admin-notices.php b/includes/admin/core/class-admin-notices.php index cc3b0d15..4bf21ec6 100644 --- a/includes/admin/core/class-admin-notices.php +++ b/includes/admin/core/class-admin-notices.php @@ -404,7 +404,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Notices' ) ) { break; case 'got_updates': - $messages[0]['content'] = __( 'You got the latest upgrades.', 'ultimate-member' ); + $messages[0]['content'] = __( 'You have the latest updates.', 'ultimate-member' ); break; case 'often_updates': diff --git a/includes/core/class-fields.php b/includes/core/class-fields.php index e3da1235..466ebf26 100644 --- a/includes/core/class-fields.php +++ b/includes/core/class-fields.php @@ -4027,9 +4027,9 @@ if ( ! class_exists( 'um\core\Fields' ) ) { if ($text_color) $css_text_color = 'color: ' . $text_color . ' !important;'; // show the heading - if ($heading) { + if ( $heading ) { - if ( !empty( $heading_background_color ) ) { + if ( ! empty( $heading_background_color ) ) { $css_heading_background_color = "background-color: $heading_background_color;"; $css_heading_padding = 'padding: 10px 15px;'; } @@ -4042,10 +4042,10 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $output .= '
'; - if ( !empty( $icon ) ) { + if ( ! empty( $icon ) ) { $output .= ''; } - if ( !empty( $heading_text ) ) { + if ( ! empty( $heading_text ) ) { $output .= htmlspecialchars( $heading_text ); }