diff --git a/CHANGES.md b/CHANGES.md index b71f2cc..37a65f5 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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 diff --git a/README.md b/README.md index 7f22ec5..d30d370 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/classicpress-seo.php b/classicpress-seo.php index e222a95..c17bdb0 100644 --- a/classicpress-seo.php +++ b/classicpress-seo.php @@ -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 @@ -55,7 +55,7 @@ class Classic_SEO { * * @var string */ - private $php_version = '7.0'; + private $php_version = '7.4'; /** * Holds various class instances. diff --git a/composer.json b/composer.json index d86b695..e1cfd63 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/composer.lock b/composer.lock index a81dd7d..2a47c5b 100644 --- a/composer.lock +++ b/composer.lock @@ -4,20 +4,20 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "3a0971c6902fb1338cc07337d9e2c0cc", + "content-hash": "32e22cafc5caa8b5bf465049f4e430ce", "packages": [ { "name": "a5hleyrich/wp-background-processing", - "version": "1.1.0", + "version": "1.1.1", "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": { @@ -52,9 +52,9 @@ "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" }, - "time": "2023-04-18T12:32:25+00:00" + "time": "2023-07-18T10:22:06+00:00" }, { "name": "cmb2/cmb2", @@ -324,7 +324,7 @@ "prefer-stable": true, "prefer-lowest": false, "platform": { - "php": ">=7.0" + "php": ">=7.4" }, "platform-dev": [], "plugin-api-version": "2.3.0" diff --git a/readme.txt b/readme.txt index ac2b44a..f72cd76 100644 --- a/readme.txt +++ b/readme.txt @@ -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 @@ -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 diff --git a/vendor/a5hleyrich/wp-background-processing/classes/wp-background-process.php b/vendor/a5hleyrich/wp-background-processing/classes/wp-background-process.php index 82a8e63..d10351a 100644 --- a/vendor/a5hleyrich/wp-background-processing/classes/wp-background-process.php +++ b/vendor/a5hleyrich/wp-background-processing/classes/wp-background-process.php @@ -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; } } @@ -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(); diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index f9b6e03..ac6a5e7 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -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": { @@ -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": { @@ -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" }, diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index ffd4a78..cf67f4d 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -3,7 +3,7 @@ 'name' => 'classicpress-plugins/classicpress-seo', 'pretty_version' => 'dev-master', 'version' => 'dev-master', - 'reference' => '859e1026b85050812661b122c3ccafa162177e55', + 'reference' => '508d0002056d5a2d24d61b98db8291727d660e4c', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -11,9 +11,9 @@ ), '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(), @@ -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(), diff --git a/vendor/composer/platform_check.php b/vendor/composer/platform_check.php index f79e574..580fa96 100644 --- a/vendor/composer/platform_check.php +++ b/vendor/composer/platform_check.php @@ -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) {