Skip to content

Commit ae96f5f

Browse files
committed
bump to 2.8.2
1 parent 5dd2b0f commit ae96f5f

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
*** WooCommerce API Manager PHP Library for Plugins and Themes Changelog ***
22

3+
2021.10.22 - version 2.8.2
4+
* Fix: Mispelled word in error message.
5+
36
2021.07.09 - version 2.8.1
47
* 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.
58

wc-am-client.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* but are not limited to, the working concept, function, and behavior of this software,
99
* the logical code structure and expression as written.
1010
*
11-
* @version 2.8.1
11+
* @version 2.8.2
1212
* @author Todd Lahman LLC https://www.toddlahman.com/
1313
* @copyright Copyright (c) Todd Lahman LLC ([email protected])
1414
* @package WooCommerce API Manager plugin and theme library
@@ -17,8 +17,8 @@
1717

1818
defined( 'ABSPATH' ) || exit;
1919

20-
if ( ! class_exists( 'WC_AM_Client_2_8_1' ) ) {
21-
class WC_AM_Client_2_8_1 {
20+
if ( ! class_exists( 'WC_AM_Client_2_8_2' ) ) {
21+
class WC_AM_Client_2_8_2 {
2222

2323
/**
2424
* Class args

wc-api-manager-php-library.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*/
3030

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

4141
// Instantiate WC_AM_Client class object if the WC_AM_Client class is loaded.
42-
if ( class_exists( 'WC_AM_Client_2_8_1' ) ) {
42+
if ( class_exists( 'WC_AM_Client_2_8_2' ) ) {
4343
/**
4444
* This file is only an example that includes a plugin header, and this code used to instantiate the client object. The variable $wcam_lib
4545
* 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
@@ -62,16 +62,16 @@
6262
*
6363
* Example:
6464
*
65-
* $wcam_lib = new WC_AM_Client_2_8_1( $file, $product_id, $software_version, $plugin_or_theme, $api_url, $software_title );
65+
* $wcam_lib = new WC_AM_Client_2_8_2( $file, $product_id, $software_version, $plugin_or_theme, $api_url, $software_title );
6666
*/
6767

6868
// Theme example.
69-
//$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' );
69+
//$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' );
7070

7171
// Second argument must be the Product ID number if used. If left empty the client will need to enter it in the activation form.
7272
// 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.
73-
//$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' );
73+
//$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' );
7474

75-
//$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' );
76-
$wcam_lib = new WC_AM_Client_2_8_1( __FILE__, '', '1.2', 'plugin', 'http://wc/', 'WooCommerce API Manager PHP Library for Plugins and Themes' );
75+
//$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' );
76+
$wcam_lib = new WC_AM_Client_2_8_2( __FILE__, '', '1.2', 'plugin', 'http://wc/', 'WooCommerce API Manager PHP Library for Plugins and Themes' );
7777
}

0 commit comments

Comments
 (0)