From f610d2be3cb27621dda3f3f599b6aa3cf678b202 Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Fri, 14 Jul 2017 11:45:47 -0400 Subject: [PATCH] Cleanup for Initial Public Release --- NOTES.txt | 6 ---- classes/MesTridentGateway.php | 4 ++- defines.php | 29 +++++++------------ ...ocommerce-merchant-e-solutions-gateway.php | 17 +++-------- readme.txt | 12 ++++---- 5 files changed, 23 insertions(+), 45 deletions(-) delete mode 100644 NOTES.txt diff --git a/NOTES.txt b/NOTES.txt deleted file mode 100644 index 860210c..0000000 --- a/NOTES.txt +++ /dev/null @@ -1,6 +0,0 @@ -Development Notes ------------------ - - -* Do I need the following??? - diff --git a/classes/MesTridentGateway.php b/classes/MesTridentGateway.php index 2d57a56..6442efe 100644 --- a/classes/MesTridentGateway.php +++ b/classes/MesTridentGateway.php @@ -1,5 +1,7 @@ \ No newline at end of file +?> diff --git a/defines.php b/defines.php index 1700ed1..240a186 100644 --- a/defines.php +++ b/defines.php @@ -5,37 +5,30 @@ * Set standard defined parameters */ -define('GLM_MES_NAME', 'Gaslight Media WooCommerce Merchant e-Solutions Gateway'); -define('GLM_MES_SHORT_NAME', 'GLM Merchant e-Solutions'); -define('GLM_MES_DESCRIPTION', 'A Merchant e-Solutions payment Gateway plug-in for WooCommerce.'); -define('GLM_MES_ID', 'glm-merchant_e_solutions'); -define('GLM_MES_SLUG', 'glm_woocommerce_merchant_e_solutions_gateway'); - -// Plugin Versions -define('GLM_MES_VERSION', 0.1); -define('GLM_MES_REQUIRED_WOO_VERSION', "2.3"); +define('GLM_MES_NAME', 'Gaslight Media WooCommerce Merchant e-Solutions Gateway'); +define('GLM_MES_SHORT_NAME', 'GLM Merchant e-Solutions'); +define('GLM_MES_DESCRIPTION', 'A Merchant e-Solutions payment Gateway plug-in for WooCommerce.'); +define('GLM_MES_ID', 'glm-merchant_e_solutions'); +define('GLM_MES_SLUG', 'glm_woocommerce_merchant_e_solutions_gateway'); // Directories -define('GLM_MES_DIR', 'glm-woocommerce-merchant-e-solutions-gateway'); -define('GLM_MES_PATH', dirname(__FILE__)); -define('GLM_MES_CLASS_PATH', GLM_MES_PATH.'/classes'); -define('GLM_MES_ASSETS_PATH', GLM_MES_PATH.'/assets'); -define('GLM_MES_INCLUDES_PATH', GLM_MES_PATH.'/includes'); -define('GLM_MES_LANGUAGE_PATH', GLM_MES_PATH.'/i18n/languages'); +define('GLM_MES_DIR', 'glm-woocommerce-merchant-e-solutions-gateway'); +define('GLM_MES_PATH', dirname(__FILE__)); +define('GLM_MES_CLASS_PATH', GLM_MES_PATH.'/classes'); +define('GLM_MES_ASSETS_PATH', GLM_MES_PATH.'/assets'); +define('GLM_MES_INCLUDES_PATH', GLM_MES_PATH.'/includes'); +define('GLM_MES_LANGUAGE_PATH', GLM_MES_PATH.'/i18n/languages'); // Get various pieces of the URL $urlParts = parse_url(get_bloginfo('url')); $pageUri = explode('?', $_SERVER['REQUEST_URI']); // Bust this up to access URL path and script name only - // URLs $pUrl = plugins_url( GLM_MES_DIR ); define('GLM_MES_URL', $pUrl.'/wp-content/plugins/'.GLM_MES_DIR); //define('GLM_MES_ASSETS_URL', plugins_url( 'assets', __FILE__ )); define('GLM_MES_ASSETS_URL', plugins_url( GLM_MES_DIR.'/assets' )); - - // Optional Gateway Icon //define('GLM_MES_ICON', GLM_MES_ASSETS_URL.'/{place_icon_filename_here'); define('GLM_MES_ICON', null); diff --git a/glm-woocommerce-merchant-e-solutions-gateway.php b/glm-woocommerce-merchant-e-solutions-gateway.php index 211a8c4..a53936a 100644 --- a/glm-woocommerce-merchant-e-solutions-gateway.php +++ b/glm-woocommerce-merchant-e-solutions-gateway.php @@ -41,25 +41,16 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +// Plugin Versions +define('GLM_MES_VERSION', 1.0.5); +define('GLM_MES_REQUIRED_WOO_VERSION', "2.3"); + if( !defined( 'ABSPATH' ) ) exit; // Exit if accessed directly. require_once('woo-includes/woo-functions.php'); // Get standard defined parameters require_once('defines.php'); -/** - * ******************************************************************************* - * - * *** Directory and File Structure *** - * - * index.php - * - * Index file for this plugin. All plugin processing starts here. (See - * "Process Flow" below.) - * - * ******************************************************************************** - */ - /* * * Activate, Deactivate, Uninstall hooks diff --git a/readme.txt b/readme.txt index 6dc4512..f0528ba 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: cscott@gaslightmedia.com Donate link: http://www.gaslightmedia.com Tags: Gaslight Media,Plugin,WooCommerce,Merchant e-Solutions,Mes Payment Gateway,Credit Card Requires at least: 3.0.1 -Tested up to: 4.2.4 +Tested up to: 4.8 Stable tag: 4.3 License: GPLv2 or later License URI: http://www.gaslightmedia.com/WordPress/plugin/license @@ -104,6 +104,10 @@ Code Result == Changelog == += 1.0.5 = +* Initial Public Release +* Misc comment cleanup + = 1.0.3 = * Added adjustable maximum payment attempts to stop checkout form abuse * Cleared up issues with address validation before transaction @@ -111,11 +115,6 @@ Code Result = 1.0.0 = * Original production version -== Upgrade Notice == - -= 1.0.3 = -Versions prior to this should not be used due to issues with pre-validation code. - == Arbitrary section == Description of setup options... @@ -172,4 +171,3 @@ Enable Verbose Debug Checking this option will result in additional d e-Solutions gateway and details of all responses. DO NOT enable this option in production mode. -== A brief Markdown Example == -- 2.17.1