Skip to content

Commit

Permalink
bump required PHP version to 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyvankooten committed Oct 4, 2024
1 parent 62a3eee commit 2e7e0f4
Show file tree
Hide file tree
Showing 5 changed files with 1,037 additions and 1,025 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
=========

#### Development

- Bump required PHP version to 7.2.


#### 4.9.17 - Sep 17, 2024

- Fix compatibility with WooCommerce versions 8.5 to 8.8 because of private method that was later made public.
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ MC4WP: Mailchimp for WordPress

Here, you can browse the source code of the [MC4WP: Mailchimp for WordPress Plugin](https://wordpress.org/plugins/mailchimp-for-wp/), find and discuss open issues or contribute code to the plugin.

Requirements
--------------

- PHP version 7.2 or higher
- WordPress version 4.6 or higher


Installation
------------

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"source": "https://github.com/ibericode/mailchimp-for-wordpress"
},
"require": {
"php": ">=5.6"
"php": ">=7.2"
},
"require-dev": {
"phpunit/phpunit": "^9.0",
Expand Down
4 changes: 2 additions & 2 deletions mailchimp-for-wp.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ function _mc4wp_load_plugin()
return;
}

// don't run if PHP version is lower than 5.6
if (PHP_VERSION_ID < 50600) {
// don't run if PHP version is lower than 7.2.0
if (PHP_VERSION_ID < 70200) {
return;
}

Expand Down
Loading

0 comments on commit 2e7e0f4

Please sign in to comment.