Plugin Directory

Changeset 2568531


Ignore:
Timestamp:
07/20/2021 08:27:35 PM (5 years ago)
Author:
eighty20results
Message:

Update to version v3.1.4 from GitHub

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

Legend:

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

    r2568305 r2568531  
    66
    77## [Unreleased]
     8
     9## v3.1.4 - 2021-07-20
     10- BUG FIX: Shouldn't prepare() the SHOW COLUMNS SQL in get_table_info() (Thomas Sjolshagen)
     11- BUG FIX: Wrong handling of PMPro version info when attempting to send welcome email (Thomas Sjolshagen)
     12- BUG FIX: PHPStan test failed due to missing PMPRO_VERSION constant (Thomas Sjolshagen)
    813
    914## v3.1.3 - 2021-07-20
  • pmpro-import-members-from-csv/tags/v3.1.4/README.md

    r2568305 r2568531  
    33`Tags: user, users, csv, batch, import, importer, admin, paid memberships pro, members, member, pmpro` <br />
    44`Requires at least: 5.0` <br />
    5 `Tested up to: 5.7.2` <br />
    6 `Stable tag: 3.1.3` <br />
     5`Tested up to: 5.8` <br />
     6`Stable tag: 3.1.4` <br />
    77`License: GPLv2` <br />
    88`License URI: http://www.gnu.org/licenses/gpl` <br />
  • pmpro-import-members-from-csv/tags/v3.1.4/README.txt

    r2568305 r2568531  
    33Tags: user, users, csv, batch, import, importer, admin, paid memberships pro, members, member, pmpro
    44Requires at least: 5.0
    5 Tested up to: 5.7.2
    6 Stable tag: 3.1.3
     5Tested up to: 5.8
     6Stable tag: 3.1.4
    77License: GPLv2
    88License URI: http://www.gnu.org/licenses/gpl
  • pmpro-import-members-from-csv/tags/v3.1.4/class.pmpro-import-members.php

    r2568305 r2568531  
    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.3
     6Version: 3.1.4
    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.3' );
     57    define( 'E20R_IMPORT_VERSION', '3.1.4' );
    5858}
    5959
  • pmpro-import-members-from-csv/tags/v3.1.4/src/class-data.php

    r2563515 r2568531  
    262262
    263263        global $wpdb;
    264 
    265         $columns    = $wpdb->get_results(
    266             $wpdb->prepare(
    267                 'SHOW COLUMNS FROM %s',
    268                 sprintf( '%1$s%2$s', $wpdb->get_blog_prefix(), $table_name )
    269             )
    270         );
     264        $prefix     = $wpdb->get_blog_prefix();
     265        $columns    = $wpdb->get_results( "SHOW COLUMNS FROM {$prefix}{$table_name}" ); // phpcs:ignore
    271266        $db_columns = array();
    272267
     
    276271
    277272        foreach ( $columns as $col ) {
    278 
    279273            $prefix = null;
    280 
    281274            switch ( $col->Field ) { // phpcs:ignore
    282275                // Ignore/skip these.
  • pmpro-import-members-from-csv/tags/v3.1.4/src/class-email-templates.php

    r2568305 r2568531  
    7373        $send_email = (bool) $this->variables->get( 'send_welcome_email' );
    7474
    75         // @phpstan-ignore-next-line
    76         if ( 1 === version_compare( PMPRO_VERSION, '1.9.5' ) ) {
     75        if ( version_compare( PMPRO_VERSION, '1.9.5', 'le' ) ) { // @phpstan-ignore-line
     76            $this->error_log->debug( 'Unable to send email due to the specified PMPro version: ' . PMPRO_VERSION );
    7777            return false;
    7878        }
    7979
    8080        if ( false === $send_email ) {
     81            $this->error_log->debug( 'Not sending email because you asked me not to!' );
    8182            return false;
    8283        }
    8384
    8485        if ( ! isset( $fields['membership_status'] ) || ( isset( $fields['membership_status'] ) && 'active' !== $fields['membership_status'] ) ) {
     86            $this->error_log->debug( "The membership_status field wasn't set to active: {$fields['membership_status']}" );
    8587            return false;
    8688        }
  • pmpro-import-members-from-csv/trunk/CHANGELOG.md

    r2568305 r2568531  
    66
    77## [Unreleased]
     8
     9## v3.1.4 - 2021-07-20
     10- BUG FIX: Shouldn't prepare() the SHOW COLUMNS SQL in get_table_info() (Thomas Sjolshagen)
     11- BUG FIX: Wrong handling of PMPro version info when attempting to send welcome email (Thomas Sjolshagen)
     12- BUG FIX: PHPStan test failed due to missing PMPRO_VERSION constant (Thomas Sjolshagen)
    813
    914## v3.1.3 - 2021-07-20
  • pmpro-import-members-from-csv/trunk/README.md

    r2568305 r2568531  
    33`Tags: user, users, csv, batch, import, importer, admin, paid memberships pro, members, member, pmpro` <br />
    44`Requires at least: 5.0` <br />
    5 `Tested up to: 5.7.2` <br />
    6 `Stable tag: 3.1.3` <br />
     5`Tested up to: 5.8` <br />
     6`Stable tag: 3.1.4` <br />
    77`License: GPLv2` <br />
    88`License URI: http://www.gnu.org/licenses/gpl` <br />
  • pmpro-import-members-from-csv/trunk/README.txt

    r2568305 r2568531  
    33Tags: user, users, csv, batch, import, importer, admin, paid memberships pro, members, member, pmpro
    44Requires at least: 5.0
    5 Tested up to: 5.7.2
    6 Stable tag: 3.1.3
     5Tested up to: 5.8
     6Stable tag: 3.1.4
    77License: GPLv2
    88License URI: http://www.gnu.org/licenses/gpl
  • pmpro-import-members-from-csv/trunk/class.pmpro-import-members.php

    r2568305 r2568531  
    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.3
     6Version: 3.1.4
    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.3' );
     57    define( 'E20R_IMPORT_VERSION', '3.1.4' );
    5858}
    5959
  • pmpro-import-members-from-csv/trunk/src/class-data.php

    r2563515 r2568531  
    262262
    263263        global $wpdb;
    264 
    265         $columns    = $wpdb->get_results(
    266             $wpdb->prepare(
    267                 'SHOW COLUMNS FROM %s',
    268                 sprintf( '%1$s%2$s', $wpdb->get_blog_prefix(), $table_name )
    269             )
    270         );
     264        $prefix     = $wpdb->get_blog_prefix();
     265        $columns    = $wpdb->get_results( "SHOW COLUMNS FROM {$prefix}{$table_name}" ); // phpcs:ignore
    271266        $db_columns = array();
    272267
     
    276271
    277272        foreach ( $columns as $col ) {
    278 
    279273            $prefix = null;
    280 
    281274            switch ( $col->Field ) { // phpcs:ignore
    282275                // Ignore/skip these.
  • pmpro-import-members-from-csv/trunk/src/class-email-templates.php

    r2568305 r2568531  
    7373        $send_email = (bool) $this->variables->get( 'send_welcome_email' );
    7474
    75         // @phpstan-ignore-next-line
    76         if ( 1 === version_compare( PMPRO_VERSION, '1.9.5' ) ) {
     75        if ( version_compare( PMPRO_VERSION, '1.9.5', 'le' ) ) { // @phpstan-ignore-line
     76            $this->error_log->debug( 'Unable to send email due to the specified PMPro version: ' . PMPRO_VERSION );
    7777            return false;
    7878        }
    7979
    8080        if ( false === $send_email ) {
     81            $this->error_log->debug( 'Not sending email because you asked me not to!' );
    8182            return false;
    8283        }
    8384
    8485        if ( ! isset( $fields['membership_status'] ) || ( isset( $fields['membership_status'] ) && 'active' !== $fields['membership_status'] ) ) {
     86            $this->error_log->debug( "The membership_status field wasn't set to active: {$fields['membership_status']}" );
    8587            return false;
    8688        }
Note: See TracChangeset for help on using the changeset viewer.