Plugin Directory

Changeset 2568305


Ignore:
Timestamp:
07/20/2021 02:21:26 PM (5 years ago)
Author:
eighty20results
Message:

Update to version v3.1.3 from GitHub

Location:
pmpro-import-members-from-csv
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • pmpro-import-members-from-csv/tags/v3.1.3/CHANGELOG.md

    r2565079 r2568305  
    66
    77## [Unreleased]
     8
     9## v3.1.3 - 2021-07-20
     10- BUG FIX: Various fixes to support the new Makefile (Thomas Sjolshagen)
     11- BUG FIX: This plugin doesn't need the metadata.json file (Thomas Sjolshagen)
     12- BUG FIX: Didn't include the deploy target as well as the fixes from the Utilities module (Thomas Sjolshagen)
     13- BUG FIX: Didn't execute email handler code due to bad version check and added e20r_import_message_subject filter to let developer set Subject text for import_email templates (Thomas Sjolshagen)
     14- BUG FIX: Typo in git message - metadata.sh (Thomas Sjolshagen)
     15- BUG FIX: Wrong path to helper_config file in build-plugin.sh (Thomas Sjolshagen)
     16- BUG FIX: Poor git error handling when files haven't changed (Thomas Sjolshagen)
     17- BUG FIX: Wrong order of variables to set correct links, etc. (Thomas Sjolshagen)
     18- BUG FIX: Invalid JSON string for changelog links in metadata.sh template (Thomas Sjolshagen)
     19- BUG FIX: Consume WP_DEPENDENCIES variable as an environment var in wp-deps target (Thomas Sjolshagen)
     20- BUG FIX: Didn't export the wordpress_version variable (Thomas Sjolshagen)
     21- BUG FIX: Missing WordPress version fetch operation from API server (Thomas Sjolshagen)
     22- BUG FIX: Didn't check whether sed was found/assigned (Thomas Sjolshagen)
     23- BUG FIX: Refactor so build target adds documentation as well (Thomas Sjolshagen)
     24- BUG FIX: Updated Makefile in support of new helper scripts (Thomas Sjolshagen)
     25- BUG FIX: Strip real email address from test data (Thomas Sjolshagen)
     26- BUG FIX: Add fixtures and inc directories for codeception tests (Thomas Sjolshagen)
     27- BUG FIX: Refactor the make helper scripts and use plugin specific config file (helper_config) (Thomas Sjolshagen)
     28
     29## v3.1.2 - 2021-07-16
     30- BUG FIX: Updated Makefile in support of new helper scripts (Thomas Sjolshagen)
     31- BUG FIX: Strip real email address from test data (Thomas Sjolshagen)
     32- BUG FIX: Add fixtures and inc directories for codeception tests (Thomas Sjolshagen)
     33- BUG FIX: Refactor the make helper scripts and use plugin specific config file (helper_config) (Thomas Sjolshagen)
    834
    935## v3.1.1 - 2021-07-15
  • pmpro-import-members-from-csv/tags/v3.1.3/README.md

    r2565079 r2568305  
    44`Requires at least: 5.0` <br />
    55`Tested up to: 5.7.2` <br />
    6 `Stable tag: 3.1.1` <br />
     6`Stable tag: 3.1.3` <br />
    77`License: GPLv2` <br />
    88`License URI: http://www.gnu.org/licenses/gpl` <br />
  • pmpro-import-members-from-csv/tags/v3.1.3/README.txt

    r2565079 r2568305  
    44Requires at least: 5.0
    55Tested up to: 5.7.2
    6 Stable tag: 3.1.1
     6Stable tag: 3.1.3
    77License: GPLv2
    88License URI: http://www.gnu.org/licenses/gpl
  • pmpro-import-members-from-csv/tags/v3.1.3/class.pmpro-import-members.php

    r2565079 r2568305  
    44Plugin URI: http://wordpress.org/plugins/pmpro-import-members-from-csv/
    55Description: Import Users and their metadata from a csv file.
    6 Version: 3.1.1
     6Version: 3.1.3
    77Requires PHP: 7.3
    88Author: <a href="https://eighty20results.com/thomas-sjolshagen/">Thomas Sjolshagen <[email protected]></a>
     
    5555
    5656if ( ! defined( 'E20R_IMPORT_VERSION' ) ) {
    57     define( 'E20R_IMPORT_VERSION', '3.1.1' );
     57    define( 'E20R_IMPORT_VERSION', '3.1.3' );
    5858}
    5959
  • pmpro-import-members-from-csv/tags/v3.1.3/src/class-email-templates.php

    r2565079 r2568305  
    7474
    7575        // @phpstan-ignore-next-line
    76         if ( 1 !== version_compare( PMPRO_VERSION, '1.9.5' ) ) {
     76        if ( 1 === version_compare( PMPRO_VERSION, '1.9.5' ) ) {
    7777            return false;
    7878        }
     
    8787
    8888        // Email 'your membership account is active' to the member if they were imported with an active member status
    89 
    90         $subject = null;
    91         $body    = null;
     89        $template_name = apply_filters( 'e20r_import_welcome_email_template', 'imported_member' );
     90        $subject       = pmpro_getOption( "email_{$template_name}_subject" );
     91        $body          = pmpro_getOption( "email_{$template_name}_body" );
    9292
    9393        global $pmproiufcsv_email;
     
    9898            $body    = $pmproiufcsv_email['body'];
    9999        }
    100 
    101         $template_name = apply_filters( 'e20r_import_welcome_email_template', 'imported_member' );
    102100
    103101        // Apply the saved
     
    119117        $email->data     = apply_filters( 'pmp_im_imported_member_message_data', array() ); // @phpstan-ignore-line
    120118        $email->data     = apply_filters( 'e20r_import_message_data', $email->data );
    121         $email->subject  = $subject; // @phpstan-ignore-line
     119        $email->subject  = apply_filters( 'e20r_import_message_subject', $subject, $email->data ); // @phpstan-ignore-line
    122120        $email->template = $template_name; // @phpstan-ignore-line
    123121
     
    279277        $pmproet_email_defaults['imported_member'] = array(
    280278            'subject'     => __( 'Welcome to my new website', 'pmpro-import-members-from-csv' ),
    281             'description' => __( 'Import: Welcome Member', 'pmpro-import-members-from-csv' ),
     279            'description' => __( 'Import: Welcome Imported Member', 'pmpro-import-members-from-csv' ),
    282280            // phpcs:ignore
    283281            'body'        => file_get_contents( Import_Members::$plugin_path . '/emails/imported_member.html' ),
  • pmpro-import-members-from-csv/trunk/CHANGELOG.md

    r2565079 r2568305  
    66
    77## [Unreleased]
     8
     9## v3.1.3 - 2021-07-20
     10- BUG FIX: Various fixes to support the new Makefile (Thomas Sjolshagen)
     11- BUG FIX: This plugin doesn't need the metadata.json file (Thomas Sjolshagen)
     12- BUG FIX: Didn't include the deploy target as well as the fixes from the Utilities module (Thomas Sjolshagen)
     13- BUG FIX: Didn't execute email handler code due to bad version check and added e20r_import_message_subject filter to let developer set Subject text for import_email templates (Thomas Sjolshagen)
     14- BUG FIX: Typo in git message - metadata.sh (Thomas Sjolshagen)
     15- BUG FIX: Wrong path to helper_config file in build-plugin.sh (Thomas Sjolshagen)
     16- BUG FIX: Poor git error handling when files haven't changed (Thomas Sjolshagen)
     17- BUG FIX: Wrong order of variables to set correct links, etc. (Thomas Sjolshagen)
     18- BUG FIX: Invalid JSON string for changelog links in metadata.sh template (Thomas Sjolshagen)
     19- BUG FIX: Consume WP_DEPENDENCIES variable as an environment var in wp-deps target (Thomas Sjolshagen)
     20- BUG FIX: Didn't export the wordpress_version variable (Thomas Sjolshagen)
     21- BUG FIX: Missing WordPress version fetch operation from API server (Thomas Sjolshagen)
     22- BUG FIX: Didn't check whether sed was found/assigned (Thomas Sjolshagen)
     23- BUG FIX: Refactor so build target adds documentation as well (Thomas Sjolshagen)
     24- BUG FIX: Updated Makefile in support of new helper scripts (Thomas Sjolshagen)
     25- BUG FIX: Strip real email address from test data (Thomas Sjolshagen)
     26- BUG FIX: Add fixtures and inc directories for codeception tests (Thomas Sjolshagen)
     27- BUG FIX: Refactor the make helper scripts and use plugin specific config file (helper_config) (Thomas Sjolshagen)
     28
     29## v3.1.2 - 2021-07-16
     30- BUG FIX: Updated Makefile in support of new helper scripts (Thomas Sjolshagen)
     31- BUG FIX: Strip real email address from test data (Thomas Sjolshagen)
     32- BUG FIX: Add fixtures and inc directories for codeception tests (Thomas Sjolshagen)
     33- BUG FIX: Refactor the make helper scripts and use plugin specific config file (helper_config) (Thomas Sjolshagen)
    834
    935## v3.1.1 - 2021-07-15
  • pmpro-import-members-from-csv/trunk/README.md

    r2565079 r2568305  
    44`Requires at least: 5.0` <br />
    55`Tested up to: 5.7.2` <br />
    6 `Stable tag: 3.1.1` <br />
     6`Stable tag: 3.1.3` <br />
    77`License: GPLv2` <br />
    88`License URI: http://www.gnu.org/licenses/gpl` <br />
  • pmpro-import-members-from-csv/trunk/README.txt

    r2565079 r2568305  
    44Requires at least: 5.0
    55Tested up to: 5.7.2
    6 Stable tag: 3.1.1
     6Stable tag: 3.1.3
    77License: GPLv2
    88License URI: http://www.gnu.org/licenses/gpl
  • pmpro-import-members-from-csv/trunk/class.pmpro-import-members.php

    r2565079 r2568305  
    44Plugin URI: http://wordpress.org/plugins/pmpro-import-members-from-csv/
    55Description: Import Users and their metadata from a csv file.
    6 Version: 3.1.1
     6Version: 3.1.3
    77Requires PHP: 7.3
    88Author: <a href="https://eighty20results.com/thomas-sjolshagen/">Thomas Sjolshagen <[email protected]></a>
     
    5555
    5656if ( ! defined( 'E20R_IMPORT_VERSION' ) ) {
    57     define( 'E20R_IMPORT_VERSION', '3.1.1' );
     57    define( 'E20R_IMPORT_VERSION', '3.1.3' );
    5858}
    5959
  • pmpro-import-members-from-csv/trunk/src/class-email-templates.php

    r2565079 r2568305  
    7474
    7575        // @phpstan-ignore-next-line
    76         if ( 1 !== version_compare( PMPRO_VERSION, '1.9.5' ) ) {
     76        if ( 1 === version_compare( PMPRO_VERSION, '1.9.5' ) ) {
    7777            return false;
    7878        }
     
    8787
    8888        // Email 'your membership account is active' to the member if they were imported with an active member status
    89 
    90         $subject = null;
    91         $body    = null;
     89        $template_name = apply_filters( 'e20r_import_welcome_email_template', 'imported_member' );
     90        $subject       = pmpro_getOption( "email_{$template_name}_subject" );
     91        $body          = pmpro_getOption( "email_{$template_name}_body" );
    9292
    9393        global $pmproiufcsv_email;
     
    9898            $body    = $pmproiufcsv_email['body'];
    9999        }
    100 
    101         $template_name = apply_filters( 'e20r_import_welcome_email_template', 'imported_member' );
    102100
    103101        // Apply the saved
     
    119117        $email->data     = apply_filters( 'pmp_im_imported_member_message_data', array() ); // @phpstan-ignore-line
    120118        $email->data     = apply_filters( 'e20r_import_message_data', $email->data );
    121         $email->subject  = $subject; // @phpstan-ignore-line
     119        $email->subject  = apply_filters( 'e20r_import_message_subject', $subject, $email->data ); // @phpstan-ignore-line
    122120        $email->template = $template_name; // @phpstan-ignore-line
    123121
     
    279277        $pmproet_email_defaults['imported_member'] = array(
    280278            'subject'     => __( 'Welcome to my new website', 'pmpro-import-members-from-csv' ),
    281             'description' => __( 'Import: Welcome Member', 'pmpro-import-members-from-csv' ),
     279            'description' => __( 'Import: Welcome Imported Member', 'pmpro-import-members-from-csv' ),
    282280            // phpcs:ignore
    283281            'body'        => file_get_contents( Import_Members::$plugin_path . '/emails/imported_member.html' ),
Note: See TracChangeset for help on using the changeset viewer.