Highlight error
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 15 May 2018 16:28:14 +0000 (12:28 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 15 May 2018 16:28:14 +0000 (12:28 -0400)
show error in red font color.

models/admin/member/billing.php

index f1b0c15..df7ea0a 100644 (file)
@@ -551,7 +551,7 @@ class GlmMembersAdmin_member_billing // extends GlmDataBilling
 
                 if ( $errors ) {
                     $paymentError = true;
-                    $messages[] = $errors;
+                    $messages[] = '<span style="color: red;">'.$errors.'</span>';
                     // Load DataClass for Management.
                     require_once GLM_MEMBERS_BILLING_PLUGIN_CLASS_PATH .  '/data/dataManagement.php';
                     $Management = new GlmDataBillingManagement( $this->wpdb, $this->config );