Skip to content

Commit

Permalink
Bump minimum required PHP version to 7.4 (#163)
Browse files Browse the repository at this point in the history
* Bump required PHP version to 7.4

* Update packages

---------

Co-authored-by: xxsimoxx <simone@gieffeedizioni.it>
  • Loading branch information
xxsimoxx and xxsimoxx authored Sep 23, 2023
1 parent 508d000 commit 6763f86
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 30 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
####v 2.2.0 / 2023-07-25
* NEW: Support for PHP 8.1 and 8.2
* REMOVED: Support for PHP below 7.4

####v 2.1.3 / 2023-05-25
* FIXED: SSL issues, deprecations
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Latest release: See [Change log](CHANGES.md)
## Minimum Requirements

- ClassicPress 1.1.0
- PHP 7.0
- PHP 7.4

## Credits
This is a fork of Rank Math.
Expand Down
4 changes: 2 additions & 2 deletions classicpress-seo.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Domain Path: /languages/
* Text Domain: cpseo
* Requires CP: 1.1
* Requires PHP: 7.0
* Requires PHP: 7.4
* Update URI: https://directory.classicpress.net/wp-json/wp/v2/plugins?byslug=classicpress-seo
*
* Fork of Rank Math v1.0.33
Expand Down Expand Up @@ -55,7 +55,7 @@ class Classic_SEO {
*
* @var string
*/
private $php_version = '7.0';
private $php_version = '7.4';

/**
* Holds various class instances.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
],
"require": {
"php": ">=7.0",
"php": ">=7.4",
"cmb2/cmb2": "^2.6",
"composer/installers": "~1.0",
"a5hleyrich/wp-background-processing": "^1.0",
Expand Down
16 changes: 8 additions & 8 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Description: Classic SEO is the first SEO plugin built specifically to wor
Version: 2.2.0
Text Domain: cpseo
Domain Path: /languages
Requires PHP: 7.0
Requires PHP: 7.4
Requires CP: 1.1
Update URI: https://directory.classicpress.net/wp-json/wp/v2/plugins?byslug=classicpress-seo
Tested: 4.9.99
Expand Down Expand Up @@ -59,6 +59,7 @@ If you need support for Classic SEO or find a bug, you have threee choices:
== Changelog ==
**v 2.2.0 / 2023-07-25**
* NEW: Support for PHP 8.1 and 8.2
* REMOVED: Support for PHP below 7.4

**v 2.1.3 / 2023-05-25**
* FIXED: SSL issues, deprecations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -527,8 +527,8 @@ protected function handle() {
// Let the server breathe a little.
sleep( $throttle_seconds );

if ( $this->time_exceeded() || $this->memory_exceeded() ) {
// Batch limits reached.
// Batch limits reached, or pause or cancel request.
if ( $this->time_exceeded() || $this->memory_exceeded() || $this->is_paused() || $this->is_cancelled() ) {
break;
}
}
Expand All @@ -537,7 +537,7 @@ protected function handle() {
if ( empty( $batch->data ) ) {
$this->delete( $batch->key );
}
} while ( ! $this->time_exceeded() && ! $this->memory_exceeded() && ! $this->is_queue_empty() );
} while ( ! $this->time_exceeded() && ! $this->memory_exceeded() && ! $this->is_queue_empty() && ! $this->is_paused() && ! $this->is_cancelled() );

$this->unlock_process();

Expand Down
14 changes: 7 additions & 7 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
"packages": [
{
"name": "a5hleyrich/wp-background-processing",
"version": "1.1.0",
"version_normalized": "1.1.0.0",
"version": "1.1.1",
"version_normalized": "1.1.1.0",
"source": {
"type": "git",
"url": "https://github.com/deliciousbrains/wp-background-processing.git",
"reference": "d5ef95cecba7f792ddca3e3bd70ebfb90dc4996d"
"reference": "ebbed762c42e70e76573ffbd36e591378ba5f2ee"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/deliciousbrains/wp-background-processing/zipball/d5ef95cecba7f792ddca3e3bd70ebfb90dc4996d",
"reference": "d5ef95cecba7f792ddca3e3bd70ebfb90dc4996d",
"url": "https://api.github.com/repos/deliciousbrains/wp-background-processing/zipball/ebbed762c42e70e76573ffbd36e591378ba5f2ee",
"reference": "ebbed762c42e70e76573ffbd36e591378ba5f2ee",
"shasum": ""
},
"require": {
Expand All @@ -28,7 +28,7 @@
"suggest": {
"coenjacobs/mozart": "Easily wrap this library with your own prefix, to prevent collisions when multiple plugins use this library"
},
"time": "2023-04-18T12:32:25+00:00",
"time": "2023-07-18T10:22:06+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
Expand All @@ -49,7 +49,7 @@
"description": "WP Background Processing can be used to fire off non-blocking asynchronous requests or as a background processing tool, allowing you to queue tasks.",
"support": {
"issues": "https://github.com/deliciousbrains/wp-background-processing/issues",
"source": "https://github.com/deliciousbrains/wp-background-processing/tree/1.1.0"
"source": "https://github.com/deliciousbrains/wp-background-processing/tree/1.1.1"
},
"install-path": "../a5hleyrich/wp-background-processing"
},
Expand Down
10 changes: 5 additions & 5 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
'name' => 'classicpress-plugins/classicpress-seo',
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '859e1026b85050812661b122c3ccafa162177e55',
'reference' => '508d0002056d5a2d24d61b98db8291727d660e4c',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
'dev' => true,
),
'versions' => array(
'a5hleyrich/wp-background-processing' => array(
'pretty_version' => '1.1.0',
'version' => '1.1.0.0',
'reference' => 'd5ef95cecba7f792ddca3e3bd70ebfb90dc4996d',
'pretty_version' => '1.1.1',
'version' => '1.1.1.0',
'reference' => 'ebbed762c42e70e76573ffbd36e591378ba5f2ee',
'type' => 'library',
'install_path' => __DIR__ . '/../a5hleyrich/wp-background-processing',
'aliases' => array(),
Expand All @@ -22,7 +22,7 @@
'classicpress-plugins/classicpress-seo' => array(
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '859e1026b85050812661b122c3ccafa162177e55',
'reference' => '508d0002056d5a2d24d61b98db8291727d660e4c',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down
4 changes: 2 additions & 2 deletions vendor/composer/platform_check.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

$issues = array();

if (!(PHP_VERSION_ID >= 70000)) {
$issues[] = 'Your Composer dependencies require a PHP version ">= 7.0.0". You are running ' . PHP_VERSION . '.';
if (!(PHP_VERSION_ID >= 70400)) {
$issues[] = 'Your Composer dependencies require a PHP version ">= 7.4.0". You are running ' . PHP_VERSION . '.';
}

if ($issues) {
Expand Down

0 comments on commit 6763f86

Please sign in to comment.