Version Description
Download this release
Release Info
Developer | DvanKooten |
Plugin | 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 +1 -1
- includes/functions.php +4 -2
- mailchimp-for-wp.php +2 -2
- readme.txt +2 -2
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +7 -7
- vendor/composer/autoload_static.php +2 -2
- vendor/composer/installed.php +2 -2
CHANGELOG.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
Changelog
|
2 |
=========
|
3 |
|
4 |
-
#### 4.8.
|
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 |
-
//
|
239 |
-
|
|
|
|
|
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.
|
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.
|
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.
|
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.
|
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
|
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
|
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('
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
29 |
-
spl_autoload_unregister(array('
|
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\
|
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\
|
57 |
} else {
|
58 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
59 |
}
|
60 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
61 |
-
|
62 |
}
|
63 |
|
64 |
return $loader;
|
@@ -70,7 +70,7 @@ class ComposerAutoloaderInitf91b938925fe275ca3a6ce2096b84f04
|
|
70 |
* @param string $file
|
71 |
* @return void
|
72 |
*/
|
73 |
-
function
|
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
|
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 =
|
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' => '
|
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' => '
|
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 |
),
|