Skip to content

Commit

Permalink
Merge pull request #22 from itthinx/pre-2.14.0
Browse files Browse the repository at this point in the history
version 2.14.0
  • Loading branch information
itthinx committed Jan 14, 2016
2 parents 3552ff6 + 2be5a61 commit aa93906
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
4 changes: 2 additions & 2 deletions affiliates.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
* Plugin Name: Affiliates
* Plugin URI: http://www.itthinx.com/plugins/affiliates
* Description: The Affiliates plugin provides the right tools to maintain a partner referral program.
* Version: 2.13.3
* Version: 2.14.0
* Author: itthinx
* Author URI: http://www.itthinx.com
* Donate-Link: http://www.itthinx.com
* License: GPLv3
*/
if ( !defined( 'AFFILIATES_CORE_VERSION' ) ) {
define( 'AFFILIATES_CORE_VERSION', '2.13.3' );
define( 'AFFILIATES_CORE_VERSION', '2.14.0' );
define( 'AFFILIATES_PLUGIN_NAME', 'affiliates' );
define( 'AFFILIATES_FILE', __FILE__ );
define( 'AFFILIATES_PLUGIN_BASENAME', plugin_basename( AFFILIATES_FILE ) );
Expand Down
3 changes: 3 additions & 0 deletions lib/core/class-affiliates-registration.php
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,9 @@ public static function create_affiliate( $userdata ) {
$_userdata['user_url'] = esc_sql( $userdata['user_url'] );
}

global $create_affiliate_userdata;
$create_affiliate_userdata = $userdata;

$user_id = wp_insert_user( $_userdata );
if ( !is_wp_error( $user_id ) ) {
// add user meta from remaining fields
Expand Down
12 changes: 8 additions & 4 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Contributors: itthinx
Donate link: http://www.itthinx.com/plugins/affiliates
Tags: ads, AddToAny, AddThis, advertising, affiliate, affiliate marketing, affiliate plugin, affiliate tool, affiliates, contact form, contact form 7, downloads, e-commerce, Ecwid, Events Manager, Jigoshop, lead, link, marketing, money, partner, Pay per Click, PayPal, PPC, referral, referral links, referrer, sales, shopping cart, TheCartPress, track, transaction, WooCommerce, WP e-Commerce
Requires at least: 4.0.0
Tested up to: 4.4
Stable tag: 2.13.3
Tested up to: 4.4.1
Stable tag: 2.14.0
License: GPLv3

The Affiliates system provides powerful tools to maintain an Affiliate Marketing Program.
Expand Down Expand Up @@ -340,6 +340,10 @@ See [Affiliates Screenshots](http://www.itthinx.com/plugins/affiliates/affiliate

== Changelog ==

= 2.14.0 =
* Added the $create_affiliate_userdata global which provides affiliate registration data in
the process after calling wp_insert_user() and before it is added as user meta data.

= 2.13.3 =
* WordPress 4.4 compatible.
* Fixed pagination not taken into account when using the input field on several admin screens.
Expand Down Expand Up @@ -677,5 +681,5 @@ See [Affiliates Screenshots](http://www.itthinx.com/plugins/affiliates/affiliate

== Upgrade Notice ==

= 2.13.3 =
This release has been tested with WordPress 4.4 and in additions contains some fixes and improvements.
= 2.14.0 =
This release contains some internal improvements related to the affiliate registration API.

0 comments on commit aa93906

Please sign in to comment.