Skip to content

Commit

Permalink
πŸ‘Œ Improve status comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel-James committed Apr 12, 2019
1 parent d3833d1 commit a8477dc
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions app/controller/class-ms-controller-member.php
Original file line number Diff line number Diff line change
Expand Up @@ -598,13 +598,10 @@ public function subscription_status_change( $new_status, $subscription, $data, $
break;
case MS_Model_Relationship::STATUS_ACTIVE:
/**
* If a member sign up via register form
* in that case it store in spending_subscriptions
* and then admin active the membership for this member via Edit Member screen
* as now it should be move to active subscriptions
* and active member too
* Make sure the status is changed to active if it is manually
* edited from admin.
*
* @since 1.1.7
* @since 1.1.7
*/
if ( MS_Model_Relationship::STATUS_PENDING === $subscription->status ) {
$member->add_membership( $subscription->membership_id );
Expand Down

0 comments on commit a8477dc

Please sign in to comment.