Fixed the low-seats admin notice breaking when the translated text contains an apostrophe. #148 (@dparker1005)
Seguridad
The number of seats is now validated at checkout, including the minimum and maximum seats settings. #149 (@dparker1005)
Prepared discount code queries and escaped output on the account page, profile screen, discount codes list and members list. #148 (@dparker1005)
Sanitized child account names created at checkout. #148 (@dparker1005)
2023 · 2 versiones
0.10.2
2 mejoras1 corrección
Mejora
Updated ` ` tags to ` ` tags for better accessibility.
Now getting level information at checkout from `pmpro_getLevelAtCheckout` instead of pulling from `$_REQUEST`
Corregido
Fixed issue where the seat cost would always show $0 at checkout.
0.10.1
1 mejora12 correcciones1 eliminado
Mejora
Adding a confirmation check before a child user is removed (@JarrydLong)
Corregido
BUG FIX/ENHANCEMENT: Now marking required child fields with asterisk at checkout (@kimwhite, @sensemonster)
BUG FIX/ENHANCEMENT: Now extending discount code expiration date when sponsor level is renewed (@JarrydLong)
BUG FIX/ENHANCEMENT: Now correctly handling plurals when localizing discount code uses text on the membership confirmation page (@JarrydLong)
BUG FIX/ENHANCEMENT: Marking plugin as incompatible with Multiple Memberships Per User for the PMPro v3.0 update (@dparker1005)
BUG FIX/ENHANCEMENT: Updating sample code to not have child level be the same as sponsoring level (@kimwhite)
Preventing exploit where child accounts for a sponsoring member would stay active if sponsoring member changed to a non-sponsor level (@dparker1005)
Fixing issue where child fields may not be hidden correctly at checkout (@JarrydLong, @dparker1005)
Resolving issue where the query to find child accounts for a user may return incorrect results if the user does not have a sponsor code (@JarrydLong)
Resolving PHP error on confirmation page when an existing sponsor checks out for a non-sponsoring level (@JarrydLong)
Resolving PHP error when an existing sponsor renews their membership without deciding to keep any old child accounts active (@JarrydLong)
Resolving issue where the `pmprosm_sponsored_code_settings` filter may sometimes be ignored (@dparker1005)
Removed `fixed` class from list table to resolve UI issues in some themes (@kimwhite)
Eliminado
No longer documenting the `children_hide_email` setting as it hasn’t worked for the last few versions, but leaving the existing code in place in case a site is using it.
2021 · 1 versión
0.10
1 nuevo6 correcciones
Nuevo
Admins and users can now remove sponsored child accounts to free up the spot.
Corregido
BUG FIX/ENHANCEMENT: We are not generating a username for child accounts at checkout if you use the children_hide_username option to hide the username field. Child accounts still need an email or name fields to generate a user account.
BUG FIX/ENHANCEMENT: Now allowing a min_seats value of 0.
BUG FIX/ENHANCEMENT: Now allowing seats set to a specific value, with max_seats and/or min_seats not defined.
Fixed an issue where 'normal' discount codes wouldn't work on child levels at checkout.
Fixed an issue where unlimited codes were not working as intended/hidden from the front-end.
Fixed some warnings when finding a sponsor of a user with no level and in some other cases.
2020 · 2 versiones
0.9
6 correcciones
Corregido
Fixed warning of undefined constant when creating child accounts at checkout.
Fixed incorrect escaping of discount code text on account/confirmation page.
Fixed issue of child start date being 1 January 1970 during account creation at checkout.
Fixed a warning during child account creation at checkout of duplicate order codes for each child account.
Updates the frontend list of a sponsor's child accounts to only show a link to edit user if they have that capability.
Fixes improper use of a ` ` where it should be a ` ` in the discount code table inside the WordPress dashboard.
0.8
3 nuevos15 mejoras16 correcciones6 cambios
Nuevo
Can now have multiple parent levels pointing to the same child levels.
Can now override the discount code that is generated for brand new main account users. Add a 'discount_code' element to the $pmprosm_sponsored_account_levels array element that is an array itself with values for any of the following discount code fields: code_id, level_id, initial_payment, billing_amount, cycle_number, cycle_period, billing_limit, trial_amount, trial_limit, expiration_number, expiration_period. Make sure that strings in the _period values are wrapped in single quotes, e.g. $discount_code['expiration_period']=>"'Year'"
Added a "discount_code_required" property for sponsored levels, which will remove the registration check to make sure a discount code is used when checking out for a sponsored level. This is useful if users can purchase the sponsored levels directly.
Mejora
New filter added to allow dynamic changes done to code created - 'pmprosm_sponsored_code_settings'
Localization and escaping of text on the front-end. Thanks @sebthesun
Adding blank orders and sending confirmation emails to sponsored accounts created at checkout. (Thanks, Bill Stoltz)
Added a new option hide_display_discount_code if you don't want sponsors to be able to see their sponsor code. (Thanks, Bill Stoltz)
Tweaked seat text for cases where seats don't cost extra. (Thanks, Bill Stoltz)
Improved display of sponsor or sponsored children on the edit user page in the WP dashboard. (Thanks, Bill Stoltz)
Giving Membership Manager role access to view and edit # of seats.
Added pmprosm_getDiscountCodeByCodeID( $code_id ) function to help with getting the code and other details from a code id.
Added a "Sponsor/Code" column to the Members List showing a link to the sponsoring user or the sponsor code if applicable.
Added a "sponsorcode" column to the Members List CSV export.
Improved fields display on membership checkout page to use no tables
Added a link to Parent of the child to User Profile for Admins-only.
Added list of Sponsored Members (children) to User Profile for Admins-only.
Moved some code from after checkout method into a pmprosm_createSponsorCode($user_id, $level_id, $uses = "") so it can be used elsewhere.
Added integration with Import Users From CSV so you can set a pmprosm_sponsor column (to a user ID, user email, or user login). If set, a sponsor code will be created for the sponsoring user (if needed) and the sponsored user will be setup as a child account.
Corregido
Fixed bug where PayPal Express wasn't saving the number of 'child' seats correctly.
Fixed a PHP warning when editing non-members in the WordPress dashboard. Thanks @cipriantepes
Fixed a warning when child level ID's was an array and tried to output a string value during checkout.
Fixed child account heading (numbering) when creating child accounts during checkout. This was out by 1.
BUG FIX/ENHANCEMENT: Prevent sponsored members for signing up with their own discount codes.
Fixed bug where discount codes were not being saved when using PayPal Express. Fixed other PayPal Express-related bugs.
Fixed bugs with the checkout URL generated for the sponsor code.
Added check in case you use the same email address for thes sponsor and a child account when creating child accounts at checkout. (Thanks, Bill Stoltz)
BUG FIX/ENHANCEMENT: Fixed pmprosm_getChildren to work when the sponsoring account is expired. (Thanks, Bill Stoltz)
BUG/ENHANCEMENT: Now setting the number of seats to the default value when changing a user's level to a parent/main level in the admin.
Fixed bug where seats and other information weren't being saved after checking out at offsite gateway like PayPal Express.
Fixed bug where "seats" user meta was not updated sometimes at checkout.
Fixed bug where no new discount code was created if a user's old code had been deleted and the id was still linked to the user.
Added current_time('timestamp') to the date calls to fix off by one timestamp issues.
No longer applying esc_sql to values in the discount_code settings. Escaping of quotes was breaking the SQL. Make sure your values in your settings are SQL safe.
Fixed bug in pmprosm_getValuesBySponsoredLevel where it was checking the main account level id instead of the $level_id parameter passed to the function. This would have kept the registration checks from working.
Cambios
= .6.3 =
= .6.2 =
= .6.1 =
= .5.1 =
= .4.3 =
No longer showing the discount code links in confirmation messages if the code has 0 uses.
Changelog publicado por el desarrollador, en su idioma original.