Skip to content

Commit

Permalink
Merge pull request #103 from strangerstudios/dev
Browse files Browse the repository at this point in the history
Version 1.3.2 update for Master.
  • Loading branch information
andrewlimaza authored Aug 21, 2019
2 parents 345569a + 3809d9b commit 3f2d1a5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions pmpro-approvals.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Paid Memberships Pro - Approvals Add On
Plugin URI: https://www.paidmembershipspro.com/add-ons/approval-process-membership/
Description: Grants administrators the ability to approve/deny memberships after signup.
Version: 1.3.1
Version: 1.3.2
Author: Stranger Studios
Author URI: https://www.paidmembershipspro.com
Text Domain: pmpro-approvals
Expand Down Expand Up @@ -469,7 +469,7 @@ public static function pmpro_has_membership_level( $haslevel, $user_id, $levels
}

// Only check this inside admin of WordPress.
if ( is_admin() ) {
if ( is_admin() && function_exists( 'get_current_screen' ) ) {

// Ignore if on the edit user screen. This will allow admins/users to update custom fields.
$current_screen = get_current_screen();
Expand Down
17 changes: 10 additions & 7 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: strangerstudios, andrewza
Tags: paid memberships pro, pmpro, approval, approvals, workflow
Requires at least: 4.0
Tested up to: 5.2.2
Stable tag: 1.3.1
Stable tag: 1.3.2

Grants administrators the ability to approve/deny memberships after signup.

Expand Down Expand Up @@ -35,12 +35,15 @@ Members pending approval will not have access to view members-only content until

View full documentation at: https://www.paidmembershipspro.com/add-ons/approval-process-membership/

== Changelog ==

= 1.3.1 - 2019-08-12 =
* BUG FIX: User approval status was not showing in the members list.
* BUG FIX: Edit user page was not showing custom fields from Register Helper.
* BUG FIX: Approval links not showing under members list and was hidden completely.
== Changelog ==

= 1.3.2 - 2019-08-22 =
* BUG FIX: get_current_screen threw a fatal error in some cases.

= 1.3.1 - 2019-08-12 =
* BUG FIX: User approval status was not showing in the members list.
* BUG FIX: Edit user page was not showing custom fields from Register Helper.
* BUG FIX: Approval links not showing under members list and was hidden completely.

= 1.3 - 2019-07-23 =
* SECURITY: Improved escaping when outputting data to the screen.
Expand Down

0 comments on commit 3f2d1a5

Please sign in to comment.