Changeset 2554946
- Timestamp:
- 06/28/2021 06:45:51 AM (5 years ago)
- Location:
- pmpro-import-members-from-csv
- Files:
-
- 12 edited
- 1 copied
-
tags/v3.0.3 (copied) (copied from pmpro-import-members-from-csv/trunk)
-
tags/v3.0.3/ActivateUtilitiesPlugin.php (modified) (5 diffs)
-
tags/v3.0.3/CHANGELOG.md (modified) (1 diff)
-
tags/v3.0.3/README.txt (modified) (1 diff)
-
tags/v3.0.3/class.pmpro-import-members.php (modified) (3 diffs)
-
tags/v3.0.3/src/class-import-members.php (modified) (2 diffs)
-
tags/v3.0.3/src/import/class-ajax.php (modified) (1 diff)
-
trunk/ActivateUtilitiesPlugin.php (modified) (5 diffs)
-
trunk/CHANGELOG.md (modified) (1 diff)
-
trunk/README.txt (modified) (1 diff)
-
trunk/class.pmpro-import-members.php (modified) (3 diffs)
-
trunk/src/class-import-members.php (modified) (2 diffs)
-
trunk/src/import/class-ajax.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pmpro-import-members-from-csv/tags/v3.0.3/ActivateUtilitiesPlugin.php
r2554806 r2554946 61 61 62 62 if ( self::is_active( $plugin ) ) { 63 return null;63 return true; 64 64 } 65 65 … … 109 109 } 110 110 111 return null;111 return self::is_active( $plugin ); 112 112 } 113 113 … … 147 147 148 148 $path = trim( $path ); 149 error_log( "Notice: Using {$path}" ); 149 150 150 151 if ( ! file_exists( $path ) ) { 151 error_log( "Didn't find the plugin file for the Utilities plugin" );152 152 add_action( 153 153 'admin_notices', … … 167 167 } 168 168 169 if ( ! self::is_active( $path) ) {170 171 $result = self::activate_plugin( $path);169 if ( ! self::is_active( self::$plugin_slug ) ) { 170 171 $result = self::activate_plugin( self::$plugin_slug ); 172 172 173 173 if ( ! is_wp_error( $result ) ) { … … 203 203 } 204 204 205 if ( self::is_active( $path) ) {205 if ( self::is_active( self::$plugin_slug ) ) { 206 206 return true; 207 207 } -
pmpro-import-members-from-csv/tags/v3.0.3/CHANGELOG.md
r2554818 r2554946 6 6 7 7 ## [Unreleased] 8 9 ## v3.0.3 - 2021-06-28 10 - BUG FIX: Refactored utilities module filter location (Thomas Sjolshagen) 11 - BUG FIX: PHP Notice warnings (Thomas Sjolshagen) 12 - BUG FIX: Didn't recognise the utilities module when it's active (Thomas Sjolshagen) 8 13 9 14 ## v3.0.2 - 2021-06-27 -
pmpro-import-members-from-csv/tags/v3.0.3/README.txt
r2554818 r2554946 4 4 Requires at least: 5.0 5 5 Tested up to: 5.7.2 6 Stable tag: 3.0. 26 Stable tag: 3.0.3 7 7 License: GPLv2 8 8 License URI: http://www.gnu.org/licenses/gpl -
pmpro-import-members-from-csv/tags/v3.0.3/class.pmpro-import-members.php
r2554818 r2554946 4 4 Plugin URI: http://wordpress.org/plugins/pmpro-import-members-from-csv/ 5 5 Description: Import Users and their metadata from a csv file. 6 Version: 3.0. 26 Version: 3.0.3 7 7 Requires PHP: 7.0 8 8 Author: <a href="https://eighty20results.com/thomas-sjolshagen/">Thomas Sjolshagen <[email protected]></a> … … 55 55 56 56 if ( ! defined( 'E20R_IMPORT_VERSION' ) ) { 57 define( 'E20R_IMPORT_VERSION', '3.0 ' );57 define( 'E20R_IMPORT_VERSION', '3.0.3' ); 58 58 } 59 59 … … 191 191 // Load this plugin 192 192 add_action( 'plugins_loaded', array( Import_Members::get_instance(), 'load_hooks' ), 10 ); 193 194 if ( false === apply_filters( 'e20r_utilities_module_installed', false ) ) {195 add_action( 'init', '\E20R\Import\Loader::is_utilities_module_active', 10 );196 } -
pmpro-import-members-from-csv/tags/v3.0.3/src/class-import-members.php
r2554806 r2554946 143 143 public function load_hooks() { 144 144 145 if ( false === apply_filters( 'e20r_utilities_module_installed', false ) ) { 146 add_action( 'init', '\E20R\Import\Loader::is_utilities_module_active', 10 ); 147 } 145 148 add_action( 'plugins_loaded', array( Email_Templates::get_instance(), 'load_hooks' ), 99 ); 146 149 add_action( 'plugins_loaded', array( Ajax::get_instance(), 'load_hooks' ), 99 ); … … 182 185 183 186 if ( class_exists( 'E20R\Utilities\Licensing\Licensing' ) ) { 184 185 187 $licensing = new Licensing( self::E20R_LICENSE_SKU ); 186 188 187 if ( 188 class_exists( 'E20R\Utilities\Licensing\Licensing' ) && 189 $licensing->is_licensed( self::E20R_LICENSE_SKU, false ) 190 ) { 189 if ( $licensing->is_licensed( self::E20R_LICENSE_SKU, false ) ) { 191 190 do_action( 'e20r_import_load_licensed_modules' ); 192 191 } -
pmpro-import-members-from-csv/tags/v3.0.3/src/import/class-ajax.php
r2554806 r2554946 134 134 public function get_client_ip() { 135 135 136 $client = @$_SERVER['HTTP_CLIENT_IP'];137 $forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];136 $client = $_SERVER['HTTP_CLIENT_IP'] ?? null; 137 $forward = $_SERVER['HTTP_X_FORWARDED_FOR'] ?? null; 138 138 $remote = $_SERVER['REMOTE_ADDR']; 139 139 $client_ip = null; -
pmpro-import-members-from-csv/trunk/ActivateUtilitiesPlugin.php
r2554806 r2554946 61 61 62 62 if ( self::is_active( $plugin ) ) { 63 return null;63 return true; 64 64 } 65 65 … … 109 109 } 110 110 111 return null;111 return self::is_active( $plugin ); 112 112 } 113 113 … … 147 147 148 148 $path = trim( $path ); 149 error_log( "Notice: Using {$path}" ); 149 150 150 151 if ( ! file_exists( $path ) ) { 151 error_log( "Didn't find the plugin file for the Utilities plugin" );152 152 add_action( 153 153 'admin_notices', … … 167 167 } 168 168 169 if ( ! self::is_active( $path) ) {170 171 $result = self::activate_plugin( $path);169 if ( ! self::is_active( self::$plugin_slug ) ) { 170 171 $result = self::activate_plugin( self::$plugin_slug ); 172 172 173 173 if ( ! is_wp_error( $result ) ) { … … 203 203 } 204 204 205 if ( self::is_active( $path) ) {205 if ( self::is_active( self::$plugin_slug ) ) { 206 206 return true; 207 207 } -
pmpro-import-members-from-csv/trunk/CHANGELOG.md
r2554818 r2554946 6 6 7 7 ## [Unreleased] 8 9 ## v3.0.3 - 2021-06-28 10 - BUG FIX: Refactored utilities module filter location (Thomas Sjolshagen) 11 - BUG FIX: PHP Notice warnings (Thomas Sjolshagen) 12 - BUG FIX: Didn't recognise the utilities module when it's active (Thomas Sjolshagen) 8 13 9 14 ## v3.0.2 - 2021-06-27 -
pmpro-import-members-from-csv/trunk/README.txt
r2554818 r2554946 4 4 Requires at least: 5.0 5 5 Tested up to: 5.7.2 6 Stable tag: 3.0. 26 Stable tag: 3.0.3 7 7 License: GPLv2 8 8 License URI: http://www.gnu.org/licenses/gpl -
pmpro-import-members-from-csv/trunk/class.pmpro-import-members.php
r2554818 r2554946 4 4 Plugin URI: http://wordpress.org/plugins/pmpro-import-members-from-csv/ 5 5 Description: Import Users and their metadata from a csv file. 6 Version: 3.0. 26 Version: 3.0.3 7 7 Requires PHP: 7.0 8 8 Author: <a href="https://eighty20results.com/thomas-sjolshagen/">Thomas Sjolshagen <[email protected]></a> … … 55 55 56 56 if ( ! defined( 'E20R_IMPORT_VERSION' ) ) { 57 define( 'E20R_IMPORT_VERSION', '3.0 ' );57 define( 'E20R_IMPORT_VERSION', '3.0.3' ); 58 58 } 59 59 … … 191 191 // Load this plugin 192 192 add_action( 'plugins_loaded', array( Import_Members::get_instance(), 'load_hooks' ), 10 ); 193 194 if ( false === apply_filters( 'e20r_utilities_module_installed', false ) ) {195 add_action( 'init', '\E20R\Import\Loader::is_utilities_module_active', 10 );196 } -
pmpro-import-members-from-csv/trunk/src/class-import-members.php
r2554806 r2554946 143 143 public function load_hooks() { 144 144 145 if ( false === apply_filters( 'e20r_utilities_module_installed', false ) ) { 146 add_action( 'init', '\E20R\Import\Loader::is_utilities_module_active', 10 ); 147 } 145 148 add_action( 'plugins_loaded', array( Email_Templates::get_instance(), 'load_hooks' ), 99 ); 146 149 add_action( 'plugins_loaded', array( Ajax::get_instance(), 'load_hooks' ), 99 ); … … 182 185 183 186 if ( class_exists( 'E20R\Utilities\Licensing\Licensing' ) ) { 184 185 187 $licensing = new Licensing( self::E20R_LICENSE_SKU ); 186 188 187 if ( 188 class_exists( 'E20R\Utilities\Licensing\Licensing' ) && 189 $licensing->is_licensed( self::E20R_LICENSE_SKU, false ) 190 ) { 189 if ( $licensing->is_licensed( self::E20R_LICENSE_SKU, false ) ) { 191 190 do_action( 'e20r_import_load_licensed_modules' ); 192 191 } -
pmpro-import-members-from-csv/trunk/src/import/class-ajax.php
r2554806 r2554946 134 134 public function get_client_ip() { 135 135 136 $client = @$_SERVER['HTTP_CLIENT_IP'];137 $forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];136 $client = $_SERVER['HTTP_CLIENT_IP'] ?? null; 137 $forward = $_SERVER['HTTP_X_FORWARDED_FOR'] ?? null; 138 138 $remote = $_SERVER['REMOTE_ADDR']; 139 139 $client_ip = null;
Note: See TracChangeset
for help on using the changeset viewer.