Skip to content

Commit

Permalink
Bump to 2.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
toddlahman committed Aug 25, 2020
1 parent 90db857 commit dc4f86c
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 148 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Requirements

WooCommerce API Manager 2.x.

WC API Manager PHP Library version 2.7
WC API Manager PHP Library version 2.7.x
==========================

This library can be dropped into a WordPress plugin or theme to activate/deactivate API Keys, to check for Software updates, and check an API Key's status with the **WooCommerce API Manager**.
Expand Down Expand Up @@ -36,7 +36,7 @@ Example Code to add to Plugins and Themes
*/

// Load WC_AM_Client class if it exists.
if ( ! class_exists( 'WC_AM_Client_2_7_2' ) ) {
if ( ! class_exists( 'WC_AM_Client_2_7_3' ) ) {
// Uncomment next line if this is a plugin
require_once( plugin_dir_path( __FILE__ ) . 'wc-am-client.php' );

Expand All @@ -45,7 +45,7 @@ if ( ! class_exists( 'WC_AM_Client_2_7_2' ) ) {
}

// Instantiate WC_AM_Client class object if the WC_AM_Client class is loaded.
if ( class_exists( 'WC_AM_Client_2_7_2' ) ) {
if ( class_exists( 'WC_AM_Client_2_7_3' ) ) {
/**
* 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 @@ -72,10 +72,10 @@ if ( class_exists( 'WC_AM_Client_2_7_2' ) ) {
*/

// Example of empty string product_id.
//$wcam_lib = new WC_AM_Client_2_7_2( __FILE__, '', '1.0', 'plugin', 'http://wc/', 'Simple Comments - Simple' );
//$wcam_lib = new WC_AM_Client_2_7_3( __FILE__, '', '1.0', 'plugin', 'http://wc/', 'Simple Comments - Simple' );

// Preferred positive integer product_id.
$wcam_lib = new WC_AM_Client_2_7_2( __FILE__, 132967, '1.0', 'plugin', 'http://wc/', 'Simple Comments - Simple' );
$wcam_lib = new WC_AM_Client_2_7_3( __FILE__, 132967, '1.0', 'plugin', 'http://wc/', 'Simple Comments - Simple' );
}
```

Expand Down
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
*** WooCommerce API Manager PHP Library for Plugins and Themes Changelog ***

2020.08.24 - version 2.7.3
* Tweak: Minor code improvements/revisions.
* Tweak: Removed pre 2.0 migration code.
* Fix: Fixed a few PHP warnings.

2019.11.29 - version 2.7.2
* Tweak: Make migration failure instructions more detailed and specific to plugin or theme.
* Tweak: Format 'plugin' or 'theme' string to lower case to insure proper string format.
Expand Down
10 changes: 5 additions & 5 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Requirements

WooCommerce API Manager 2.x.

WC API Manager PHP Library version 2.7
WC API Manager PHP Library version 2.7.x
==========================

This library can be dropped into a WordPress plugin or theme to activate/deactivate API Keys, to check for Software updates, and check an API Key's status with the **WooCommerce API Manager**.
Expand Down Expand Up @@ -36,7 +36,7 @@ Example Code to add to Plugins and Themes
*/

// Load WC_AM_Client class if it exists.
if ( ! class_exists( 'WC_AM_Client_2_7_2' ) ) {
if ( ! class_exists( 'WC_AM_Client_2_7_3' ) ) {
// Uncomment next line if this is a plugin
require_once( plugin_dir_path( __FILE__ ) . 'wc-am-client.php' );

Expand All @@ -45,7 +45,7 @@ if ( ! class_exists( 'WC_AM_Client_2_7_2' ) ) {
}

// Instantiate WC_AM_Client class object if the WC_AM_Client class is loaded.
if ( class_exists( 'WC_AM_Client_2_7_2' ) ) {
if ( class_exists( 'WC_AM_Client_2_7_3' ) ) {
/**
* 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 @@ -72,10 +72,10 @@ if ( class_exists( 'WC_AM_Client_2_7_2' ) ) {
*/

// Example of empty string product_id.
//$wcam_lib = new WC_AM_Client_2_7_2( __FILE__, '', '1.0', 'plugin', 'http://wc/', 'Simple Comments - Simple' );
//$wcam_lib = new WC_AM_Client_2_7_3( __FILE__, '', '1.0', 'plugin', 'http://wc/', 'Simple Comments - Simple' );

// Preferred positive integer product_id.
$wcam_lib = new WC_AM_Client_2_7_2( __FILE__, 132967, '1.0', 'plugin', 'http://wc/', 'Simple Comments - Simple' );
$wcam_lib = new WC_AM_Client_2_7_3( __FILE__, 132967, '1.0', 'plugin', 'http://wc/', 'Simple Comments - Simple' );
}
```

Expand Down
Loading

0 comments on commit dc4f86c

Please sign in to comment.