MailChimp for WordPress - Version 4.8.10

Version Description

Download this release

Release Info

Developer DvanKooten
Plugin Icon 128x128 MailChimp for WordPress
Version 4.8.10
Comparing to
See all releases

Code changes from version 4.8.9 to 4.8.10

CHANGELOG.md CHANGED
@@ -1,7 +1,7 @@
1
  Changelog
2
  =========
3
 
4
- #### 4.8.9 - Sep 14, 2022
5
 
6
  - Fix mc4wp_get_request_ip_address() to return an IP address that matches Mailchimp's validation format when X-Forwarded-For header contains a port component.
7
 
1
  Changelog
2
  =========
3
 
4
+ #### 4.8.10 - Sep 14, 2022
5
 
6
  - Fix mc4wp_get_request_ip_address() to return an IP address that matches Mailchimp's validation format when X-Forwarded-For header contains a port component.
7
 
includes/functions.php CHANGED
@@ -235,8 +235,10 @@ function mc4wp_get_request_ip_address() {
235
  // use first IP in list
236
  $ip_address = trim( $ip_address[0] );
237
 
238
- // strip ports and stuff
239
- $ip_address = parse_url( 'http://' . $ip_address, PHP_URL_HOST );
 
 
240
 
241
  return $ip_address;
242
  }
235
  // use first IP in list
236
  $ip_address = trim( $ip_address[0] );
237
 
238
+ // if IP address is not valid, simply return null
239
+ if ( ! filter_var( $ip_address, FILTER_VALIDATE_IP ) ) {
240
+ return null;
241
+ }
242
 
243
  return $ip_address;
244
  }
mailchimp-for-wp.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: MC4WP: Mailchimp for WordPress
4
  Plugin URI: https://www.mc4wp.com/#utm_source=wp-plugin&utm_medium=mailchimp-for-wp&utm_campaign=plugins-page
5
  Description: Mailchimp for WordPress by ibericode. Adds various highly effective sign-up methods to your site.
6
- Version: 4.8.9
7
  Author: ibericode
8
  Author URI: https://ibericode.com/
9
  Text Domain: mailchimp-for-wp
@@ -45,7 +45,7 @@ function _mc4wp_load_plugin() {
45
  }
46
 
47
  // bootstrap the core plugin
48
- define( 'MC4WP_VERSION', '4.8.9' );
49
  define( 'MC4WP_PLUGIN_DIR', __DIR__ );
50
  define( 'MC4WP_PLUGIN_FILE', __FILE__ );
51
 
3
  Plugin Name: MC4WP: Mailchimp for WordPress
4
  Plugin URI: https://www.mc4wp.com/#utm_source=wp-plugin&utm_medium=mailchimp-for-wp&utm_campaign=plugins-page
5
  Description: Mailchimp for WordPress by ibericode. Adds various highly effective sign-up methods to your site.
6
+ Version: 4.8.10
7
  Author: ibericode
8
  Author URI: https://ibericode.com/
9
  Text Domain: mailchimp-for-wp
45
  }
46
 
47
  // bootstrap the core plugin
48
+ define( 'MC4WP_VERSION', '4.8.10' );
49
  define( 'MC4WP_PLUGIN_DIR', __DIR__ );
50
  define( 'MC4WP_PLUGIN_FILE', __FILE__ );
51
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.mc4wp.com/contribute/#utm_source=wp-plugin-repo&utm_med
4
  Tags: mailchimp, mc4wp, email, marketing, newsletter, subscribe, widget, mc4wp, contact form 7, woocommerce, buddypress, ibericode, mailchimp form
5
  Requires at least: 4.6
6
  Tested up to: 6.0
7
- Stable tag: 4.8.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  Requires PHP: 5.3
@@ -197,7 +197,7 @@ The plugin provides various filter & action hooks that allow you to modify or ex
197
  == Changelog ==
198
 
199
 
200
- #### 4.8.9 - Sep 14, 2022
201
 
202
  - Fix mc4wp_get_request_ip_address() to return an IP address that matches Mailchimp's validation format when X-Forwarded-For header contains a port component.
203
 
4
  Tags: mailchimp, mc4wp, email, marketing, newsletter, subscribe, widget, mc4wp, contact form 7, woocommerce, buddypress, ibericode, mailchimp form
5
  Requires at least: 4.6
6
  Tested up to: 6.0
7
+ Stable tag: 4.8.10
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  Requires PHP: 5.3
197
  == Changelog ==
198
 
199
 
200
+ #### 4.8.10 - Sep 14, 2022
201
 
202
  - Fix mc4wp_get_request_ip_address() to return an IP address that matches Mailchimp's validation format when X-Forwarded-For header contains a port component.
203
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInitf91b938925fe275ca3a6ce2096b84f04::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit6853f969aeab142bb1203dfc0bfa7a38::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitf91b938925fe275ca3a6ce2096b84f04
6
  {
7
  private static $loader;
8
 
@@ -24,15 +24,15 @@ class ComposerAutoloaderInitf91b938925fe275ca3a6ce2096b84f04
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInitf91b938925fe275ca3a6ce2096b84f04', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
- spl_autoload_unregister(array('ComposerAutoloaderInitf91b938925fe275ca3a6ce2096b84f04', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
- call_user_func(\Composer\Autoload\ComposerStaticInitf91b938925fe275ca3a6ce2096b84f04::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
@@ -53,12 +53,12 @@ class ComposerAutoloaderInitf91b938925fe275ca3a6ce2096b84f04
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
- $includeFiles = Composer\Autoload\ComposerStaticInitf91b938925fe275ca3a6ce2096b84f04::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
- composerRequiref91b938925fe275ca3a6ce2096b84f04($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
@@ -70,7 +70,7 @@ class ComposerAutoloaderInitf91b938925fe275ca3a6ce2096b84f04
70
  * @param string $file
71
  * @return void
72
  */
73
- function composerRequiref91b938925fe275ca3a6ce2096b84f04($fileIdentifier, $file)
74
  {
75
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
76
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit6853f969aeab142bb1203dfc0bfa7a38
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInit6853f969aeab142bb1203dfc0bfa7a38', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
+ spl_autoload_unregister(array('ComposerAutoloaderInit6853f969aeab142bb1203dfc0bfa7a38', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
+ call_user_func(\Composer\Autoload\ComposerStaticInit6853f969aeab142bb1203dfc0bfa7a38::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
+ $includeFiles = Composer\Autoload\ComposerStaticInit6853f969aeab142bb1203dfc0bfa7a38::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
+ composerRequire6853f969aeab142bb1203dfc0bfa7a38($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
70
  * @param string $file
71
  * @return void
72
  */
73
+ function composerRequire6853f969aeab142bb1203dfc0bfa7a38($fileIdentifier, $file)
74
  {
75
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
76
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInitf91b938925fe275ca3a6ce2096b84f04
8
  {
9
  public static $files = array (
10
  'fca581ae5268210490253d58378748c5' => __DIR__ . '/../..' . '/includes/functions.php',
@@ -87,7 +87,7 @@ class ComposerStaticInitf91b938925fe275ca3a6ce2096b84f04
87
  public static function getInitializer(ClassLoader $loader)
88
  {
89
  return \Closure::bind(function () use ($loader) {
90
- $loader->classMap = ComposerStaticInitf91b938925fe275ca3a6ce2096b84f04::$classMap;
91
 
92
  }, null, ClassLoader::class);
93
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit6853f969aeab142bb1203dfc0bfa7a38
8
  {
9
  public static $files = array (
10
  'fca581ae5268210490253d58378748c5' => __DIR__ . '/../..' . '/includes/functions.php',
87
  public static function getInitializer(ClassLoader $loader)
88
  {
89
  return \Closure::bind(function () use ($loader) {
90
+ $loader->classMap = ComposerStaticInit6853f969aeab142bb1203dfc0bfa7a38::$classMap;
91
 
92
  }, null, ClassLoader::class);
93
  }
vendor/composer/installed.php CHANGED
@@ -5,7 +5,7 @@
5
  'type' => 'wordpress-plugin',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
- 'reference' => '7741f1ec7bc1122f0eee4ce1b481cf9686dc7139',
9
  'name' => 'ibericode/mailchimp-for-wordpress',
10
  'dev' => false,
11
  ),
@@ -16,7 +16,7 @@
16
  'type' => 'wordpress-plugin',
17
  'install_path' => __DIR__ . '/../../',
18
  'aliases' => array(),
19
- 'reference' => '7741f1ec7bc1122f0eee4ce1b481cf9686dc7139',
20
  'dev_requirement' => false,
21
  ),
22
  ),
5
  'type' => 'wordpress-plugin',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
+ 'reference' => '99b55d0c505eef0399fadaf9ae096c9b55058c6c',
9
  'name' => 'ibericode/mailchimp-for-wordpress',
10
  'dev' => false,
11
  ),
16
  'type' => 'wordpress-plugin',
17
  'install_path' => __DIR__ . '/../../',
18
  'aliases' => array(),
19
+ 'reference' => '99b55d0c505eef0399fadaf9ae096c9b55058c6c',
20
  'dev_requirement' => false,
21
  ),
22
  ),