From 62785cc21c363d3f220868fbe67cff39884be357 Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Thu, 11 Jun 2015 11:47:30 -0400 Subject: [PATCH] Fixed insecure credit card type images in the checkout page --- classes/glmMesGateway.php | 8 +------- defines.php | 4 ++-- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/classes/glmMesGateway.php b/classes/glmMesGateway.php index 44ed9e8..43f2726 100644 --- a/classes/glmMesGateway.php +++ b/classes/glmMesGateway.php @@ -259,12 +259,6 @@ class GlmMesGateway extends WC_Payment_Gateway $this->settings['cvv_required'] = $this->settings['cvv_required']; // Add credit cards available to the description - $this->description .= '

Credit Cards Accepted

' . ($this->settings['visa'] == - 'yes' ? 'VISA  ' : '') . ($this->settings['mastercard'] == - 'yes' ? 'MASTERCARD  ' : '') . ($this->settings['amex'] == - 'yes' ? 'AMEX  ' : '') . ($this->settings['discover'] == - 'yes' ? 'DISCOVER  ' : '') . '

'; -/* $this->description .= '

Credit Cards Accepted

' . ($this->settings['visa'] == 'yes' ? '' : '') . ($this->settings['mastercard'] == 'yes' ? '' : '') . ($this->settings['discover'] == 'yes' ? '' : '') . '

'; -*/ + // Check for SSL add_action('admin_notices', array( diff --git a/defines.php b/defines.php index e937608..1700ed1 100644 --- a/defines.php +++ b/defines.php @@ -30,9 +30,9 @@ $pageUri = explode('?', $_SERVER['REQUEST_URI']); // Bust this up // URLs $pUrl = plugins_url( GLM_MES_DIR ); - define('GLM_MES_URL', $pUrl.'/wp-content/plugins/'.GLM_MES_DIR); -define('GLM_MES_ASSETS_URL', GLM_MES_URL.'/assets'); +//define('GLM_MES_ASSETS_URL', plugins_url( 'assets', __FILE__ )); +define('GLM_MES_ASSETS_URL', plugins_url( GLM_MES_DIR.'/assets' )); -- 2.17.1