Skip to content

Commit

Permalink
user update [affiliates_fields] fix
Browse files Browse the repository at this point in the history
  • Loading branch information
itthinx committed Apr 14, 2016
1 parent dc0e0f2 commit 66cfde3
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.15.0
* Version: 2.15.1
* 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.15.0' );
define( 'AFFILIATES_CORE_VERSION', '2.15.1' );
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-shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,9 @@ public static function affiliates_fields( $atts, $content = null ) {
}
}

// get user again in case anything changed as we're using it below
$user = get_user_by( 'id', $user_id );

// show form
$n = 0;
if ( !empty( $registration_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.1
Stable tag: 2.15.0
Tested up to: 4.5
Stable tag: 2.15.1
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.15.1 =
* WordPress 4.5 compatibility tested.
* Fixed an issue with affiliate fields not showing updated value on first load.

= 2.15.0 =
* Added the $affiliates_request_encoded_id global which provides the referring affiliate's ID if
recognized during a request.
Expand Down Expand Up @@ -693,5 +697,5 @@ See [Affiliates Screenshots](http://www.itthinx.com/plugins/affiliates/affiliate

== Upgrade Notice ==

= 2.15.0 =
This release adds new shortcodes that allow to show referrer information and content conditionally: [referrer], [affiliates_is_referred] and [affiliates_is_not_referred].
= 2.15.1 =
This release is tested for WordPress 4.5 compatibility and fixes an issue with affiliate fields not showing updated value on first load.

0 comments on commit 66cfde3

Please sign in to comment.