== Affiliates - Changelog == = 2.15.8 = * Updated pot and translation files. * Updated the German translation. * Updated the Spanish translation. = 2.15.7 = * Added the [affiliates_user_meta] shortcode which allows to render user meta data. * Updated the Spanish translation. = 2.15.6 = * Added the [affiliates_bloginfo] shortcode. * Extended the functionality provided by the [affiliates_url] shortcode adding the 'url' attribute. = 2.15.5 = * Added affiliates delete bulk option. * For WordPress translation : Added Text Domain and Domain Path header tags. = 2.15.4 = * For WordPress translation : Substituted constants with string literals as language domain indicators. * Moved the complete changelog to changelog.txt. = 2.15.3 = * Updated the admin buttons translation. * Updated the German translation. * Updated the Spanish translation. * Updated the translation template file. = 2.15.2 = * Fixed an unescaped underscore in the SQL query for the test to find pages containing Affiliates shortcodes. = 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. * Added the [referrer] shortcode which allows to render information about the referring affiliate. * Added the [affiliates_is_referred] shortcode which allows to display content conditionally for referred visitors. * Added the [affiliates_is_not_referred] shortcode which allows to display content conditionally for referred visitors. = 2.14.1 = * Added a parameter set to the filter invoked when the new affiliate notification is sent to the site administrator. * Added the affiliates_new_affiliate_registration_headers filter. = 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. = 2.13.2 = * Fixed potential XSS vulnerabilities related to the unescaped use of $_SERVER['REQUEST_URI']. = 2.13.1 = * Reverted a change introduced in 2.13.0 related to trailing slashes. = 2.13.0 = * Fixed an issue where trailing slashes would be left before the query part of an affiliate URL. * Add-ons section revised. = 2.12.1 = * Fixed PHP notice thrown when a replacement captcha instead of the built-in captcha field is used. = 2.12.0 = * Fixed compatibility with WordPress 4.3 (widget constructor). * Fixed potential issues when upgrading from earlier versions. * Fixed a PHP Warning related to password changes through the affiliate fields. * Added a guard against multiple invocations of the affiliate user update procedure in the same request. = 2.11.0 = * Added a cookie timeout filter. * Removed menu title translation to circumvent effects of core bug 18857. * Fixed a bug related to retrieving a user option where the null comparison needed to be strict. * Added an AJAX handler to allow setting user options on the fly. * Added the option to hide or show filters on the affiliates overview. * Added the affiliates_admin_referrals_secondary_actions filter. * Fixed a minor bug related to data representation in case of string data in referrals. * Improved PHP compatibility avoiding use of boolval. = 2.10.0 = * Updated the German translation with more suitable translations in context. * Updated the Spanish translation. * Updated the French translation. * Updated the Affiliates menu position. * Updated the translation template. = 2.9.2 = * Fixes the issue with the Appearance menu disappearing. = 2.9.1 = * Updated the menu position. * Added the affiliates_registration_login_redirect_url filter to allow customized redirects for login. * Updated the Spanish translation. = 2.9.0 = * German translation added. = 2.8.6 = * Fixed custom registration fields not taken into account when existing users register as affiliates. * Fixed slashes are not stripped on custom fields and labels when editing an affiliate. = 2.8.5 = * Added a filter for the help tab footer. * Updated the translation template. * Fixed missing spacing on filters in Totals section. * Removed deprecated information about links from Manage Affiliates help. * Added a filter for the help tab title. * Corrected the menu permission for the Totals section. * Fixed missing right margin in Totals section. * Corrected user profile output when showing affiliate fields (needed slashes stripped). = 2.8.4 = * Added the translation template. * Removed a couple of translations for empty strings. = 2.8.3 = * Fixed affilite URLs with missing path element. * Added API function to obtain affiliate URLs. * Improved the affiliates_url shortcode to avoid URLs being messed up by default filters applied to the content it receives. = 2.8.2 = * Fixes an issue with the registration form not being rendered when page content is evaluated previously. * Fixes user URL not saved due to usage of inexistent variable. * Removed Ready from integrations index. = 2.8.1 = * Fixed a PHP Warning when saving a user profile. = 2.8.0 = * Added a setup notice with links to the page generation and integration sections. * Improved the configuration section and replaced the Options menu item with Settings. * Direct referrals are now disabled by default. * Changed the default cookie timeout to 30 days. * Security improvement, added additional ABSPATH checks. * Improved UI appearance and fixed some structural issues. * Added the option to enable user registration referrals for new WooCommerce customers. * Improved the date displayed for earnings for i18n. * Added customization options for the affiliate registration form. * Added User profile displays additional affiliate registration fields. * Added the [affiliates_fields] shortcode and included it in the affiliate area page generator. * Ukranian translation added. = 2.7.3 = * WordPress 4.1 compatible. = 2.7.2 = * WordPress 4.0 compatible. = 2.7.1 = * Improved style loading. * Fixed missing pagination class resource used in totals. * Improved registration form so that first name and last name can be indicated directly instead of diverting to profile. * Fixed a warning due to missing post when user is added on admin. * Added the affiliates_user_registration_on_admin filter and now not recording user registration referrals unless it returns true when users are added on the admin back end. = 2.7.0 = * Built-in User Registration Integration added, allows to record referrals when new users are referred by affiliates. * Added filter affiliates_referral_amount_decimals. * Added totals section. * Added filter affiliates_referrals_display_currency. * Added filter affiliates_referrals_display_total. * Added filter affiliates_referrals_display_total_none. * Improved and cleaned up the referrals screen by removing the Set buttons and reducing the status column footprint. = 2.6.2 = * Registration form now allows optional or hidden first name and last name fields. = 2.6.1 = * Affiliate user notification filters added. = 2.6.0 = * WordPress 3.9 compatibility checked * Fixed the affiliate filter on the Referrals screen. * Changed filter logic on Referrals screen for 3.9's prepare() nags. * Changed filter logic on Visits & Referrals screen for 3.9's prepare() nags. * Changed filter logic on Affiliates & Referrals screen for 3.9's prepare() nags. * Fixed the affiliates_get_affiliates() function invoking prepare() when no parameters are needed. * Added status filter on Affiliates & Referrals screen. * Pretty affiliate links have been deprecated and won't be supported anymore. * Removed/substituted old PHP4 constructors. * Fixed day chart on affiliates overview screen when from date is given only. = 2.5.1 = * Added the French translation. * Improved UI elements for filter sections. * Improved UI for add/edit affiliate. = 2.5.0 = * New affiliates dashboard widget added. * New shortcode [affiliates_earnings] showing affiliate earnings per month. = 2.4.4 = * WordPress 3.8 compatibility checked * Improved the Links column displayed in the Manage Affiliates section. * Added option to display accumulated referral totals in the Manage Affiliates section (enabled by default). * Fixed filter nonce checks in Manage Affiliates section. * Improved filter labels in Manage Affiliates section. = 2.4.3 = * Fixed missing translation domain on label in registration form. * Fixed translation of submit button not taken into account. * Added the affiliates_registration_profile_url filter. * Added the affiliates_redirect_status_code filter. = 2.4.2 = * Added captcha filters affiliates_captcha_get and affiliates_captcha_validate. * Replaced use of deprecated ereg_replace with preg_replace. * Added filters before and after registration form and error filter for validation. * Added new affiliate registration email filters: affiliates_admin_email, affiliates_new_affiliate_registration_subject, affiliates_new_affiliate_registration_message. = 2.4.1 = * Improved URL parameter handling: filter acts late to add query var; parameter is unset in $wp->query_vars to avoid ending up on the blog page. = 2.4.0.1 = * WordPress 3.6 compatibility checked = 2.4.0 = * addded missing text domains on labels * fixed some options not being saved under certain conditions * fixed cookie expiration for 0 days * GUI improvements (labels/checkboxes) * GUI improvements (highlight active filters) * Example contact form now produces a reference for referrals * added affiliate email search filter * improved hit recording (not querying robots when unused) = 2.3.0 = * WordPress 3.5.2 compatibility tests passed = 2.2.1 = * added revised Italian translation by Roberto Castaldo * added Polish translation * added missing language domain on some labels * fixed using correct path for load_plugin_textdomain() * added the if_empty attribute to the [affiliates_referrals] shortcode * added new hook affiliates_updated_referral and referral update function * added option to redirect after affiliate hit, now disabled by default = 2.2.0 = * added [referrer_user] shortcode * added Italian translation * added features to manually add, edit and remove referrals * added option to search in referral descriptions too * fixed sticky filter application in referral screens (Visits & Referrals, Affiliates & Referrals, Referrals) = 2.1.9 = * added Indonesian translation * WP 3.5 compatible * fixed bug deleting search filter on referrals admin screen = 2.1.8 = * added Spanish translation * improved referrals view * fixed wrong type of hook used for parse_request (was filter) = 2.1.7 = * added additional data to affiliates_referral hook = 2.1.6 = * fixed character encoding issue for affiliate link when rendering code * added filter to service * added affiliates_record_referral filter * added affiliates_add_referral function * added affiliates_get_user_affiliate function = 2.1.5 = * Added Javascript redirect for registraton form when headers were already sent and the redirect / redirect_to attributes are specified * Fixed rewrite rule handling = 2.1.4 = * Improved usability of click-toggles on admin screens * GUI appearance improvements * Reduced footnote * Added affiliates_referral action * Added Portuguese translation. = 2.1.3 = * Added Slovak translation. = 2.1.2 = * Dropped use of visualize for stats graphs, using flot instead. = 2.1.1 = * Added shortcode to render the referrer's id. = 2.1.0 = * Added Lithuanian translation. * Added Hebrew translation. = 2.0.1 = * WordPress 3.4 compatibility checked * fixed MD5-encoded affiliate links = 2.0.0 = * Made affiliate registration independent of user registration based on general settings * Adjusted for usage on multisite subsites * Added network management options * Fixed default update flow for new installation = 1.3.9 = * added [affiliates_id] shortcode that prints the affiliate's id = 1.3.8.1 = * using alternative method to record IP on hits and referrals on system with PHP_INT_SIZE < 8 = 1.3.8 = * fixed affiliate registration bug * added filter to search in referral data = 1.3.7 = * added [affiliates_hits] and [affiliates_visits] shortcodes * fixed bug when affiliate is selected on Visits & Referrals screen when affiliate is given in filters * fixed bug in Affiliates & Referrals screen when date and affiliate is given in filters = 1.3.6 = * added the option to change the default Affiliates URL parameter name from 'affiliates' to something else * added Affiliates URL parameter name option to options page * loading admin area scripts only when in admin * fixed options page behavior: when pressing return in a field, a new page was generated = 1.3.5 = * Fixed too restrictive date filters in charts. = 1.3.4 = * Added date filter section to charts to provide a more flexible means of displaying charts for desired date ranges. = 1.3.3 = * Fixed empty filter fields are now handled correctly. = 1.3.2 = * 14 Day Charts added in overview showing referrals, visits and hits for the last 14 days. = 1.3.1 = * Added Affiliate Area page generation button in Affiliates > Options. * Added more shortcodes: [affiliates_login_redirect], [affiliates_logout]. * Improved shortcodes to support nesting. = 1.3.0 = * Added new shortcodes: [affiliates_is_affiliate], [affiliates_is_not_affiliate], [affiliates_url], [affiliates_referrals] = 1.2.2 = * No changes but a note on new integrations available. = 1.2.1 = * added detailed referral info on summary screen: shows number of referrals by status - accepted, closed, pending and rejected * affiliates_added_affiliate action provided after a new affiliate has been added * affiliates_updated_affiliate action provided after an affiliate has been edited * Note that affiliates_deleted_affiliate action already existed * Prepared language section for translations (but no translations added yet) = 1.2.0 = * Changed primary key of referrals table. * Added reference column and index. = 1.1.2 = * Added type to referrals = 1.1.1 = * Added status parameter to referral suggestion = 1.1.0 = * Automated affiliate registration, providing affiliate registration widget, registration form shortcode and API * Important bug fixes = 1.0.4 = * This release fixes the issue of md5-encoded links not showing up = 1.0.3 = * Fixed bug in Affiliates Overview : number of referrals shown was wrong = 1.0.2 = * Fixed remnant hard-coded table names. Thanks to Gernot Brandstötter who spotted these! = 1.0.1 = * Fixed errors showing up for PHP < 5.3 = 1.0.0 = * Initial release (tested & working on production sites).