Skip to content

Commit

Permalink
Merge pull request #7 from eighty20results/1.9.16
Browse files Browse the repository at this point in the history
v1.9.16
  • Loading branch information
eighty20results authored Oct 15, 2017
2 parents db8f40f + 78b8b43 commit f19ac21
Show file tree
Hide file tree
Showing 217 changed files with 1,187 additions and 1,788 deletions.
64 changes: 62 additions & 2 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ E20R Payment Warning for PMPro
Contributors: eighty20results
Tags: pmpro, membership, recurring payment warning, paid memberships pro, membership management, payment warning
Requires at least: 4.8
Tested up to: 4.8.1
Stable tag: 1.9.7
Tested up to: 4.8.2
Stable tag: 1.9.16


Generates and sends notices to active Paid Memberships Pro members about their upcoming recurring payment, their expiring memberships, and required updates to their credit card information. The plugin receives its data directly from the supported payment gateway which makes it more reliable and consistent in sending email warnings/notices to your members.
Expand Down Expand Up @@ -45,6 +45,66 @@ If you sponsor the development of gateway support you will receive forum support
Changelog
------------

###v1.9.16

* ENHANCEMENT: Security update

###v1.9.15

* ENHANCEMENT: Move E20R_Async_Request class to Utilities submodule
* ENHANCEMENT: Move E20R_Background_Process class to Utilities submodule
* ENHANCEMENT: Remove unused namespaces from Fetch_User_Data class
* ENHANCEMENT: Rename PayPal Gateway add-on module
* ENHANCEMENT: Add OAuth2 Client Secret and Key settings to PayPal add-on settings
* ENHANCEMENT: Move the PayPal REST API SDK library to libraries/
* ENHANCEMENT: Upgraded Utilities submodule to include the Background processing library
* BUG FIX: Didn't include Handle_Messages in move of Background Processing to Utilities module
* BUG FIX: Didn't start the background job when we expected it to
* BUG FIX: Fatal error if unexpected module/class file is present in add-on directory
* BUG FIX: Didn't handle Stripe API errors well
* BUG FIX: Report error if no transaction ID is found for Stripe charge/invoice

###v1.9.14

* BUG FIX: Didn't always load active recurring payment member data
* BUG FIX: Didn't load previously recurring membership records that are now expiring
* BUG FIX: Should always set status to 'recurring' in set_active_subscription_members()
* BUG FIX: Handle situations where user has a recurring level and we have to auto-detect
* ENHANCEMENT: Simplified config of non-recurring payment status (always active based on what PMPro believes)
* ENHANCEMENT: Simplified config of status (always active based on what PMPro believes)
* ENHANCEMENT: Reduce debug logging levels


###v1.9.13

* BUG FIX: Would sometimes double up on the entry count in the queue

###v1.9.12

* ENHANCEMENT/FIX: Clear old temporary data/keys/values from options table

###v1.9.11

* REFACTOR: Moved monitoring for background data collection job to fetch_gateway_payment_info action
* BUG FIX: Moved monitoring cron job scheduler to Cron_Handler class

###v1.9.10

* ENHANCEMENT: Faster completion of scheduled job checks
* ENHANCEMENT: Also add monitoring if the mutex is set
* BUG FIX: Delay first execution of monitoring action

###v1.9.9

* ENHANCEMENT: Add monitoring for background data collection job
* ENHANCEMENT: Clear mutex (lock) options (if they exists) once the background jobs are done/have completed
* ENHANCEMENT: Added Cron schedule for 30 minute repeating check of background data collection status

###v1.9.8

* BUG FIX: Didn't trigger remote data update
* ENHANCEMENT: Updated Utilities/Licensing modules

###v1.9.7

* ENHANCEMENT: Added array_isnt_empty() function which returns true if the array contains values (can still fail an '! empty()' call)
Expand Down
7 changes: 1 addition & 6 deletions build_readmes/current.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
ENHANCEMENT: Added array_isnt_empty() function which returns true if the array contains values (can still fail an "! empty()" call)
ENHANCEMENT: Simplify placeholder text for license input
BUG FIX: Problems when activating or managing multiple licenses from different plugin entities at the same time.
BUG FIX: Extra slashes in Subject
BUG FIX: Support new argument for e20r-license-add-new-licenses filter
BUG FIX: Would fail to save/activate valid licenses in certain situations
ENHANCEMENT: Security update
28 changes: 26 additions & 2 deletions class.e20r-payment-warning-pmpro.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Developer: Thomas Sjolshagen <thomas@eighty20results.com>
Developer URI: https://eighty20results.com/thomas-sjolshagen/
PHP Version: 5.4
Version: 1.9.7
Version: 1.9.16
License: GPL2
Text Domain: e20r-payment-warning-pmpro
Domain Path: /languages
Expand Down Expand Up @@ -46,7 +46,7 @@
}

if ( ! defined( 'E20R_PW_VERSION' ) ) {
define( 'E20R_PW_VERSION', '1.9.7' );
define( 'E20R_PW_VERSION', '1.9.16' );
}

if ( !defined ( 'E20R_PW_DIR' ) ) {
Expand Down Expand Up @@ -225,6 +225,7 @@ public function disable_pmpro_actions() {
*
* @access public
* @since 1.0
* @since 1.9.9 - ENHANCEMENT: Add 30 minute Cron schedule
*/
public function plugins_loaded() {

Expand All @@ -251,11 +252,28 @@ public function plugins_loaded() {

add_action( 'init', array( $this, 'load_translation' ) );

/**
* Add 30 minute cron job schedule
*
* @since v1.9.9 - ENHANCEMENT: Add 30 minute Cron schedule
*/
add_filter( 'cron_schedules',array( Cron_Handler::get_instance(), 'cron_schedules' ), 10, 1);

/**
* Add hook to monitor background job mutext settings
*
* @since v1.9.9 - ENHANCEMENT: WP_Cron hook that monitors background data collection jobs
*/
add_action( 'e20r_check_job_status', array( Cron_Handler::get_instance(), 'clear_mutexes' ) );

// Load the admin & settings menu
add_action( 'admin_menu', array( $this, 'load_admin_settings_page' ), 10 );
add_action( 'admin_menu', array( Editor::get_instance(), 'load_tools_menu_item' ) );

// Show any licensing warnings
add_action( 'admin_init', array( $this, 'check_license_warnings' ) );


if ( ! empty ( $GLOBALS['pagenow'] )
&& ( 'options-general.php' === $GLOBALS['pagenow']
|| 'options.php' === $GLOBALS['pagenow']
Expand Down Expand Up @@ -487,6 +505,12 @@ private function load_addon_settings() {
require_once( $path );

$class = $e20r_pw_addons[ $class_name ][ $var_name ];

if ( empty( $class ) ) {
$utils->log("Expected class {$class_name} was not found!");
continue;
}

$class = "E20R\\Payment_Warning\\Addon\\{$class}";

$utils->log( "Checking if {$class} add-on is enabled?" );
Expand Down
Loading

0 comments on commit f19ac21

Please sign in to comment.