Skip to content

Commit

Permalink
Revert logic for saving on post content, we check this further down.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewlimaza committed Oct 19, 2022
1 parent 1f991aa commit 58357a5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions pmpro-membership-card.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,10 @@ function pmpro_membership_card_get_post_id()
function pmpro_membership_card_save_post( $post_id ) {
global $post;

if ( ! has_shortcode( $post->post_content, "pmpro_membership_card" ) ) {
return;
}

if ( !isset( $post->post_type) ) {
return;
}


if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
return;
}
Expand Down
1 change: 0 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ Please post it in the issues section of GitHub and we'll fix it as soon as we ca
* 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 =
Expand Down

0 comments on commit 58357a5

Please sign in to comment.