Skip to content

Commit

Permalink
Version bump
Browse files Browse the repository at this point in the history
Version bump to 1.1
  • Loading branch information
andrewlimaza committed Oct 19, 2022
1 parent 649d6c2 commit 1f991aa
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
10 changes: 5 additions & 5 deletions pmpro-membership-card.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Paid Memberships Pro - Membership Card Add On
Plugin URI: http://www.paidmembershipspro.com/wp/pmpro-membership-card/
Description: Display a printable Membership Card for Paid Memberships Pro members or WP users.
Version: 1.0
Version: 1.1
Author: Stranger Studios
Author URI: http://www.strangerstudios.com
Text Domain: pmpro-membership-card
Expand Down Expand Up @@ -389,15 +389,15 @@ function pmpro_membership_card_output_levels_for_user( $pmpro_membership_card_us
/**
* Returns member's active levels.
*
* @deprecated TBD No longer necessary.
* @deprecated 1.1 No longer necessary.
*
* @param object $pmpro_membership_card_user The membership user.
*
* @return array User Levels.
*/
function pmpro_membership_card_get_levels_for_user( $pmpro_membership_card_user ){
// Show deprecation message.
_deprecated_function( __FUNCTION__, 'TBD', 'pmpro_membership_card_output_levels_for_user' );
_deprecated_function( __FUNCTION__, '1.1', 'pmpro_membership_card_output_levels_for_user' );

if ( ! isset( $pmpro_membership_card_user->ID ) ) {
return false;
Expand All @@ -420,11 +420,11 @@ function pmpro_membership_card_get_levels_for_user( $pmpro_membership_card_user
/**
* Returns member's level name
*
* @deprecated TBD No longer necessary.
* @deprecated 1.1 No longer necessary.
*/
function pmpro_membership_card_return_level_name( $pmpro_membership_card_user ){
// Show deprecation message.
_deprecated_function( __FUNCTION__, 'TBD', 'pmpro_membership_card_output_levels_for_user' );
_deprecated_function( __FUNCTION__, '1.1', 'pmpro_membership_card_output_levels_for_user' );

return isset( $pmpro_membership_card_user->membership_level->name ) ? $pmpro_membership_card_user->membership_level->name : __( 'None', 'pmpro-membership-card' );

Expand Down
11 changes: 9 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: strangerstudios
Tags: paid memberships pro, pmpro, membership, card, membership card, members, badge, logo
Requires at least: 3.5
Tested up to: 5.4
Stable tag: 1.0
Stable tag: 1.1

Display a printable Membership Card for Paid Memberships Pro members or WP users.

Expand All @@ -29,12 +29,19 @@ Specify the print size of the cards to display using the shortcode attribute "pr
Please post it in the issues section of GitHub and we'll fix it as soon as we can. Thanks for helping. https://github.com/strangerstudios/pmpro-membership-card/issues

== Changelog ==
= 1.1 - 19-10-2022 =
* ENHANCEMENT: Improved support for Multiple Memberships Per User Add On. This now shows multiple levels within the card view. (@dparker1005)
* ENHANCEMENT: Added the ID 'pmpro_membership_card_member_since' to the 'since' element on the membership card. (@kimwhite)
* BUG FIX/ENHANCEMENT: Fixed an issue where the "View and Print Membership Card" link would not generate a URL correctly if a page wasn't set with the [pmpro_membership_card] shortcode. (@andrewlimaza)
* BUG FIX: Fixed an issue where the save function would run on all post saves and not just for the membership card page.
* DEPRECATED: Deprecated functions (pmpro_membership_card_get_levels_for_user and pmpro_membership_card_return_level_name) in place of the new function pmpro_membership_card_output_levels_for_user. (@dparker1005)

= 1.0 - 01-04-2020 =
* BUG FIX/ENHANCEMENT: Fixed notices and warnings, general improvements.
* ENHANCEMENT: Added QR Code functionality and QR data. Attributes: `qr_code="true"` and `qr_data="email"` for example. Please see documentation for more information. Thanks @jarrydlong.
* ENHANCEMENT: Added filter to allow custom data to be added: `pmpro_membership_card_after_card`.
* ENHANCEMENT: Added filter for QR code if `"other"` is set in attribute: `pmpro_membership_card_qr_data_other` and `pmpro_membership_card_qr_code_size`.
* ENHANCEMENT: Support Multiple Memberships Per User Add On. Thanks @ronalfy
* BUG FIX/ENHANCEMENT: Fixed notices and warnings, general improvements.

= .4 =
* BUG: Include private as well as published posts/pages in searches for the page/post containing the member card shortcode
Expand Down

0 comments on commit 1f991aa

Please sign in to comment.