Skip to content

Commit

Permalink
bump to 2.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
toddlahman committed Nov 2, 2021
1 parent 5dd2b0f commit ae96f5f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
*** WooCommerce API Manager PHP Library for Plugins and Themes Changelog ***

2021.10.22 - version 2.8.2
* Fix: Mispelled word in error message.

2021.07.09 - version 2.8.1
* Fix: Warning: Trying to access array offset on value of type bool. PHP warning fixed by checking if the API Key string is not empty before using the string to access the api_key element in an array.

Expand Down
6 changes: 3 additions & 3 deletions wc-am-client.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* but are not limited to, the working concept, function, and behavior of this software,
* the logical code structure and expression as written.
*
* @version 2.8.1
* @version 2.8.2
* @author Todd Lahman LLC https://www.toddlahman.com/
* @copyright Copyright (c) Todd Lahman LLC ([email protected])
* @package WooCommerce API Manager plugin and theme library
Expand All @@ -17,8 +17,8 @@

defined( 'ABSPATH' ) || exit;

if ( ! class_exists( 'WC_AM_Client_2_8_1' ) ) {
class WC_AM_Client_2_8_1 {
if ( ! class_exists( 'WC_AM_Client_2_8_2' ) ) {
class WC_AM_Client_2_8_2 {

/**
* Class args
Expand Down
14 changes: 7 additions & 7 deletions wc-api-manager-php-library.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
*/

// Load WC_AM_Client class if it exists.
if ( ! class_exists( 'WC_AM_Client_2_8_1' ) ) {
if ( ! class_exists( 'WC_AM_Client_2_8_2' ) ) {
/*
* |---------------------------------------------------------------------
* | This must be exactly the same for both plugins and themes.
Expand All @@ -39,7 +39,7 @@
}

// Instantiate WC_AM_Client class object if the WC_AM_Client class is loaded.
if ( class_exists( 'WC_AM_Client_2_8_1' ) ) {
if ( class_exists( 'WC_AM_Client_2_8_2' ) ) {
/**
* This file is only an example that includes a plugin header, and this code used to instantiate the client object. The variable $wcam_lib
* can be used to access the public properties from the WC_AM_Client class, but $wcam_lib must have a unique name. To find data saved by
Expand All @@ -62,16 +62,16 @@
*
* Example:
*
* $wcam_lib = new WC_AM_Client_2_8_1( $file, $product_id, $software_version, $plugin_or_theme, $api_url, $software_title );
* $wcam_lib = new WC_AM_Client_2_8_2( $file, $product_id, $software_version, $plugin_or_theme, $api_url, $software_title );
*/

// Theme example.
//$wcam_lib = new WC_AM_Client_2_8_1( __FILE__, 234, '1.0', 'theme', 'http://wc/', 'WooCommerce API Manager PHP Library for Plugins and Themes' );
//$wcam_lib = new WC_AM_Client_2_8_2( __FILE__, 234, '1.0', 'theme', 'http://wc/', 'WooCommerce API Manager PHP Library for Plugins and Themes' );

// Second argument must be the Product ID number if used. If left empty the client will need to enter it in the activation form.
// Plugin example. The $wcam_lib is optional, and must have a unique name if used to check if the API Key has been activated before allowing use of the plugin/theme.
//$wcam_lib = new WC_AM_Client_2_8_1( __FILE__, 138828, '2.7.3', 'plugin', 'http://wc/', 'WooCommerce API Manager PHP Library for Plugins and Themes' );
//$wcam_lib = new WC_AM_Client_2_8_2( __FILE__, 138828, '2.7.3', 'plugin', 'http://wc/', 'WooCommerce API Manager PHP Library for Plugins and Themes' );

//$wcam_lib = new WC_AM_Client_2_8_1( __FILE__, 32960, '1.2', 'plugin', 'http://wc/', 'WooCommerce API Manager PHP Library for Plugins and Themes' );
$wcam_lib = new WC_AM_Client_2_8_1( __FILE__, '', '1.2', 'plugin', 'http://wc/', 'WooCommerce API Manager PHP Library for Plugins and Themes' );
//$wcam_lib = new WC_AM_Client_2_8_2( __FILE__, 32960, '1.2', 'plugin', 'http://wc/', 'WooCommerce API Manager PHP Library for Plugins and Themes' );
$wcam_lib = new WC_AM_Client_2_8_2( __FILE__, '', '1.2', 'plugin', 'http://wc/', 'WooCommerce API Manager PHP Library for Plugins and Themes' );
}

0 comments on commit ae96f5f

Please sign in to comment.