diff --git a/composer.lock b/composer.lock index ef90e7c05..3e28dd6a4 100644 --- a/composer.lock +++ b/composer.lock @@ -1678,16 +1678,16 @@ }, { "name": "friendsofphp/php-cs-fixer", - "version": "v3.34.1", + "version": "v3.38.0", "source": { "type": "git", "url": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.git", - "reference": "98bf1b1068b4ceddbbc2a2b70b67a5e380add9e3" + "reference": "7e6070026e76aa09d77a47519625c86593fb8e31" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/98bf1b1068b4ceddbbc2a2b70b67a5e380add9e3", - "reference": "98bf1b1068b4ceddbbc2a2b70b67a5e380add9e3", + "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/7e6070026e76aa09d77a47519625c86593fb8e31", + "reference": "7e6070026e76aa09d77a47519625c86593fb8e31", "shasum": "" }, "require": { @@ -1720,8 +1720,6 @@ "phpspec/prophecy": "^1.16", "phpspec/prophecy-phpunit": "^2.0", "phpunit/phpunit": "^9.5", - "phpunitgoodpractices/polyfill": "^1.6", - "phpunitgoodpractices/traits": "^1.9.2", "symfony/phpunit-bridge": "^6.2.3", "symfony/yaml": "^5.4 || ^6.0" }, @@ -1761,7 +1759,7 @@ ], "support": { "issues": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues", - "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.34.1" + "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.38.0" }, "funding": [ { @@ -1769,7 +1767,7 @@ "type": "github" } ], - "time": "2023-10-03T23:51:05+00:00" + "time": "2023-11-07T08:44:54+00:00" }, { "name": "gettext/gettext", @@ -3415,16 +3413,16 @@ }, { "name": "php-stubs/wordpress-stubs", - "version": "v6.3.0", + "version": "v6.3.2", "source": { "type": "git", "url": "https://github.com/php-stubs/wordpress-stubs.git", - "reference": "adda7609e71d5f4dc7b87c74f8ec9e3437d2e92c" + "reference": "f22b00cacd3b9addc2b07ff48290084503c48574" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/adda7609e71d5f4dc7b87c74f8ec9e3437d2e92c", - "reference": "adda7609e71d5f4dc7b87c74f8ec9e3437d2e92c", + "url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/f22b00cacd3b9addc2b07ff48290084503c48574", + "reference": "f22b00cacd3b9addc2b07ff48290084503c48574", "shasum": "" }, "require-dev": { @@ -3437,6 +3435,7 @@ }, "suggest": { "paragonie/sodium_compat": "Pure PHP implementation of libsodium", + "symfony/polyfill-php80": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", "szepeviktor/phpstan-wordpress": "WordPress extensions for PHPStan" }, "type": "library", @@ -3453,22 +3452,22 @@ ], "support": { "issues": "https://github.com/php-stubs/wordpress-stubs/issues", - "source": "https://github.com/php-stubs/wordpress-stubs/tree/v6.3.0" + "source": "https://github.com/php-stubs/wordpress-stubs/tree/v6.3.2" }, - "time": "2023-08-10T16:34:11+00:00" + "time": "2023-10-14T10:08:05+00:00" }, { "name": "php-webdriver/webdriver", - "version": "1.15.0", + "version": "1.15.1", "source": { "type": "git", "url": "https://github.com/php-webdriver/php-webdriver.git", - "reference": "a1578689290055586f1ee51eaf0ec9d52895bb6d" + "reference": "cd52d9342c5aa738c2e75a67e47a1b6df97154e8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-webdriver/php-webdriver/zipball/a1578689290055586f1ee51eaf0ec9d52895bb6d", - "reference": "a1578689290055586f1ee51eaf0ec9d52895bb6d", + "url": "https://api.github.com/repos/php-webdriver/php-webdriver/zipball/cd52d9342c5aa738c2e75a67e47a1b6df97154e8", + "reference": "cd52d9342c5aa738c2e75a67e47a1b6df97154e8", "shasum": "" }, "require": { @@ -3477,7 +3476,7 @@ "ext-zip": "*", "php": "^7.3 || ^8.0", "symfony/polyfill-mbstring": "^1.12", - "symfony/process": "^5.0 || ^6.0" + "symfony/process": "^5.0 || ^6.0 || ^7.0" }, "replace": { "facebook/webdriver": "*" @@ -3519,9 +3518,9 @@ ], "support": { "issues": "https://github.com/php-webdriver/php-webdriver/issues", - "source": "https://github.com/php-webdriver/php-webdriver/tree/1.15.0" + "source": "https://github.com/php-webdriver/php-webdriver/tree/1.15.1" }, - "time": "2023-08-29T13:52:26+00:00" + "time": "2023-10-20T12:21:20+00:00" }, { "name": "phpcompatibility/php-compatibility", @@ -3715,16 +3714,16 @@ }, { "name": "phpstan/phpstan", - "version": "1.10.38", + "version": "1.10.41", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "5302bb402c57f00fb3c2c015bac86e0827e4b691" + "reference": "c6174523c2a69231df55bdc65b61655e72876d76" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/5302bb402c57f00fb3c2c015bac86e0827e4b691", - "reference": "5302bb402c57f00fb3c2c015bac86e0827e4b691", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/c6174523c2a69231df55bdc65b61655e72876d76", + "reference": "c6174523c2a69231df55bdc65b61655e72876d76", "shasum": "" }, "require": { @@ -3773,7 +3772,7 @@ "type": "tidelift" } ], - "time": "2023-10-06T14:19:14+00:00" + "time": "2023-11-05T12:57:57+00:00" }, { "name": "phpunit/php-code-coverage", @@ -7785,16 +7784,16 @@ }, { "name": "symfony/yaml", - "version": "v5.4.23", + "version": "v5.4.30", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "4cd2e3ea301aadd76a4172756296fe552fb45b0b" + "reference": "c6980e82a6656f6ebfabfd82f7585794cb122554" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/4cd2e3ea301aadd76a4172756296fe552fb45b0b", - "reference": "4cd2e3ea301aadd76a4172756296fe552fb45b0b", + "url": "https://api.github.com/repos/symfony/yaml/zipball/c6980e82a6656f6ebfabfd82f7585794cb122554", + "reference": "c6980e82a6656f6ebfabfd82f7585794cb122554", "shasum": "" }, "require": { @@ -7840,7 +7839,7 @@ "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/yaml/tree/v5.4.23" + "source": "https://github.com/symfony/yaml/tree/v5.4.30" }, "funding": [ { @@ -7856,26 +7855,26 @@ "type": "tidelift" } ], - "time": "2023-04-23T19:33:36+00:00" + "time": "2023-10-27T18:36:14+00:00" }, { "name": "szepeviktor/phpstan-wordpress", - "version": "v1.3.0", + "version": "v1.3.2", "source": { "type": "git", "url": "https://github.com/szepeviktor/phpstan-wordpress.git", - "reference": "5b5cc77ed51fdaf64efe3f00b5aae4b709d2cfa9" + "reference": "b8516ed6bab7ec50aae981698ce3f67f1be2e45a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/szepeviktor/phpstan-wordpress/zipball/5b5cc77ed51fdaf64efe3f00b5aae4b709d2cfa9", - "reference": "5b5cc77ed51fdaf64efe3f00b5aae4b709d2cfa9", + "url": "https://api.github.com/repos/szepeviktor/phpstan-wordpress/zipball/b8516ed6bab7ec50aae981698ce3f67f1be2e45a", + "reference": "b8516ed6bab7ec50aae981698ce3f67f1be2e45a", "shasum": "" }, "require": { "php": "^7.2 || ^8.0", "php-stubs/wordpress-stubs": "^4.7 || ^5.0 || ^6.0", - "phpstan/phpstan": "^1.10.0", + "phpstan/phpstan": "^1.10.30", "symfony/polyfill-php73": "^1.12.0" }, "require-dev": { @@ -7886,6 +7885,9 @@ "phpunit/phpunit": "^8.0 || ^9.0", "szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^0.8" }, + "suggest": { + "swissspidy/phpstan-no-private": "Detect usage of internal core functions, classes and methods" + }, "type": "phpstan-extension", "extra": { "phpstan": { @@ -7913,9 +7915,9 @@ ], "support": { "issues": "https://github.com/szepeviktor/phpstan-wordpress/issues", - "source": "https://github.com/szepeviktor/phpstan-wordpress/tree/v1.3.0" + "source": "https://github.com/szepeviktor/phpstan-wordpress/tree/v1.3.2" }, - "time": "2023-04-23T06:15:06+00:00" + "time": "2023-10-16T17:23:56+00:00" }, { "name": "theseer/tokenizer", @@ -8278,16 +8280,16 @@ }, { "name": "wp-cli/wp-cli", - "version": "v2.8.1", + "version": "v2.9.0", "source": { "type": "git", "url": "https://github.com/wp-cli/wp-cli.git", - "reference": "5dd2340b9a01c3cfdbaf5e93a140759fdd190eee" + "reference": "8a3befba2d947fbf5cc6d1941edf2dd99da4d4b7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/wp-cli/zipball/5dd2340b9a01c3cfdbaf5e93a140759fdd190eee", - "reference": "5dd2340b9a01c3cfdbaf5e93a140759fdd190eee", + "url": "https://api.github.com/repos/wp-cli/wp-cli/zipball/8a3befba2d947fbf5cc6d1941edf2dd99da4d4b7", + "reference": "8a3befba2d947fbf5cc6d1941edf2dd99da4d4b7", "shasum": "" }, "require": { @@ -8304,7 +8306,7 @@ "wp-cli/entity-command": "^1.2 || ^2", "wp-cli/extension-command": "^1.1 || ^2", "wp-cli/package-command": "^1 || ^2", - "wp-cli/wp-cli-tests": "^3.1.6" + "wp-cli/wp-cli-tests": "^4.0.1" }, "suggest": { "ext-readline": "Include for a better --prompt implementation", @@ -8344,7 +8346,7 @@ "issues": "https://github.com/wp-cli/wp-cli/issues", "source": "https://github.com/wp-cli/wp-cli" }, - "time": "2023-06-05T06:55:55+00:00" + "time": "2023-10-25T09:06:37+00:00" }, { "name": "wp-coding-standards/wpcs", diff --git a/languages/post-expirator.pot b/languages/post-expirator.pot index 775111127..27bbf469e 100644 --- a/languages/post-expirator.pot +++ b/languages/post-expirator.pot @@ -2,16 +2,16 @@ # This file is distributed under the same license as the PublishPress Future plugin. msgid "" msgstr "" -"Project-Id-Version: PublishPress Future 3.1.1-beta.2\n" +"Project-Id-Version: PublishPress Future 3.1.2\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/project\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2023-09-28T14:45:54+00:00\n" +"POT-Creation-Date: 2023-11-07T22:29:47+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"X-Generator: WP-CLI 2.8.1\n" +"X-Generator: WP-CLI 2.9.0\n" "X-Domain: post-expirator\n" #. Plugin Name of the plugin @@ -116,7 +116,7 @@ msgstr "" #: legacy/classes/Facade.class.php:418 #: src/Modules/Expirator/Tables/ScheduledActionsTable.php:44 -#: src/Modules/Settings/Controllers/Controller.php:179 +#: src/Modules/Settings/Controllers/Controller.php:180 #: src/Views/bulk-edit.php:129 #: src/Views/bulk-edit.php:131 #: src/Views/classic-metabox.php:117 @@ -149,19 +149,22 @@ msgid "Future Action" msgstr "" #: legacy/functions.php:1167 -#: src/Modules/Settings/Controllers/Controller.php:192 +#: src/Modules/Settings/Controllers/Controller.php:193 msgid "No taxonomies found" msgstr "" #: services.php:69 +#: src/Modules/Settings/SettingsFacade.php:77 msgid "l F jS, Y" msgstr "" #: services.php:70 +#: src/Modules/Settings/SettingsFacade.php:78 msgid "g:ia" msgstr "" #: services.php:71 +#: src/Modules/Settings/SettingsFacade.php:79 msgid "Post expires at EXPIRATIONTIME on ACTIONDATE" msgstr "" @@ -374,36 +377,36 @@ msgstr "" msgid "Async" msgstr "" -#: src/Modules/Settings/Controllers/Controller.php:167 +#: src/Modules/Settings/Controllers/Controller.php:168 msgid "Default Values" msgstr "" -#: src/Modules/Settings/Controllers/Controller.php:168 +#: src/Modules/Settings/Controllers/Controller.php:169 msgid "Use the values below to set the default actions/values to be used for each for the corresponding post types. These values can all be overwritten when creating/editing the post/page." msgstr "" -#: src/Modules/Settings/Controllers/Controller.php:172 #: src/Modules/Settings/Controllers/Controller.php:173 +#: src/Modules/Settings/Controllers/Controller.php:174 msgid "Active" msgstr "" -#: src/Modules/Settings/Controllers/Controller.php:174 +#: src/Modules/Settings/Controllers/Controller.php:175 msgid "Inactive" msgstr "" -#: src/Modules/Settings/Controllers/Controller.php:175 +#: src/Modules/Settings/Controllers/Controller.php:176 msgid "Select whether the PublishPress Future meta box is active for this post type." msgstr "" -#: src/Modules/Settings/Controllers/Controller.php:180 +#: src/Modules/Settings/Controllers/Controller.php:181 msgid "Select the default action for the post type." msgstr "" -#: src/Modules/Settings/Controllers/Controller.php:184 +#: src/Modules/Settings/Controllers/Controller.php:185 msgid "Auto-enable?" msgstr "" -#: src/Modules/Settings/Controllers/Controller.php:185 +#: src/Modules/Settings/Controllers/Controller.php:186 #: src/Views/menu-diagnostics.php:62 #: src/Views/menu-display.php:81 #: src/Views/menu-general.php:145 @@ -411,7 +414,7 @@ msgstr "" msgid "Enabled" msgstr "" -#: src/Modules/Settings/Controllers/Controller.php:186 +#: src/Modules/Settings/Controllers/Controller.php:187 #: src/Views/menu-diagnostics.php:82 #: src/Views/menu-display.php:86 #: src/Views/menu-general.php:152 @@ -419,52 +422,52 @@ msgstr "" msgid "Disabled" msgstr "" -#: src/Modules/Settings/Controllers/Controller.php:187 +#: src/Modules/Settings/Controllers/Controller.php:188 msgid "Select whether the PublishPress Future is enabled for all new posts." msgstr "" -#: src/Modules/Settings/Controllers/Controller.php:191 +#: src/Modules/Settings/Controllers/Controller.php:192 msgid "Taxonomy (Hierarchical)" msgstr "" -#: src/Modules/Settings/Controllers/Controller.php:193 +#: src/Modules/Settings/Controllers/Controller.php:194 msgid "Select the hierarchical taxonomy and terms to be used for taxonomy based expiration." msgstr "" -#: src/Modules/Settings/Controllers/Controller.php:197 +#: src/Modules/Settings/Controllers/Controller.php:198 #: src/Views/menu-general.php:189 msgid "Who to Notify" msgstr "" -#: src/Modules/Settings/Controllers/Controller.php:198 +#: src/Modules/Settings/Controllers/Controller.php:199 msgid "Enter a comma separate list of emails that you would like to be notified when the action runs." msgstr "" -#: src/Modules/Settings/Controllers/Controller.php:202 +#: src/Modules/Settings/Controllers/Controller.php:203 #: src/Views/menu-general.php:101 msgid "Default Date/Time Offset" msgstr "" -#: src/Modules/Settings/Controllers/Controller.php:205 +#: src/Modules/Settings/Controllers/Controller.php:206 msgid "" "Set the offset to use for the default action date and time. For information on formatting, see %1$s\n" " . For example, you could enter %2$s+1 month%3$s or %4$s+1 week 2 days 4 hours 2 seconds%5$s or %6$snext Thursday%7$s. Please, use only terms in English." msgstr "" -#: src/Modules/Settings/Controllers/Controller.php:210 +#: src/Modules/Settings/Controllers/Controller.php:211 #: src/Views/menu-general.php:115 msgid "PHP strtotime function" msgstr "" -#: src/Modules/Settings/Controllers/Controller.php:221 +#: src/Modules/Settings/Controllers/Controller.php:222 msgid "Default terms:" msgstr "" -#: src/Modules/Settings/Controllers/Controller.php:222 +#: src/Modules/Settings/Controllers/Controller.php:223 msgid "Save changes" msgstr "" -#: src/Modules/Settings/Controllers/Controller.php:295 +#: src/Modules/Settings/Controllers/Controller.php:296 msgid "Form Validation Failure: Sorry, your nonce did not verify." msgstr "" diff --git a/lib/composer.lock b/lib/composer.lock index e3181efb1..05c3fb3c6 100644 --- a/lib/composer.lock +++ b/lib/composer.lock @@ -418,16 +418,16 @@ }, { "name": "woocommerce/action-scheduler", - "version": "3.6.3", + "version": "3.6.4", "source": { "type": "git", "url": "https://github.com/woocommerce/action-scheduler.git", - "reference": "c33dd732e37c90f37c3f9662f7eed888c11dc60d" + "reference": "e7dafe215be5ef823392204535ee2e241f99a8cb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/woocommerce/action-scheduler/zipball/c33dd732e37c90f37c3f9662f7eed888c11dc60d", - "reference": "c33dd732e37c90f37c3f9662f7eed888c11dc60d", + "url": "https://api.github.com/repos/woocommerce/action-scheduler/zipball/e7dafe215be5ef823392204535ee2e241f99a8cb", + "reference": "e7dafe215be5ef823392204535ee2e241f99a8cb", "shasum": "" }, "require-dev": { @@ -452,9 +452,9 @@ "homepage": "https://actionscheduler.org/", "support": { "issues": "https://github.com/woocommerce/action-scheduler/issues", - "source": "https://github.com/woocommerce/action-scheduler/tree/3.6.3" + "source": "https://github.com/woocommerce/action-scheduler/tree/3.6.4" }, - "time": "2023-09-13T13:40:20+00:00" + "time": "2023-10-11T18:24:47+00:00" } ], "packages-dev": [], diff --git a/lib/vendor/composer/installed.json b/lib/vendor/composer/installed.json index 32aefcff4..01ca88ebe 100644 --- a/lib/vendor/composer/installed.json +++ b/lib/vendor/composer/installed.json @@ -430,17 +430,17 @@ }, { "name": "woocommerce/action-scheduler", - "version": "3.6.3", - "version_normalized": "3.6.3.0", + "version": "3.6.4", + "version_normalized": "3.6.4.0", "source": { "type": "git", "url": "https://github.com/woocommerce/action-scheduler.git", - "reference": "c33dd732e37c90f37c3f9662f7eed888c11dc60d" + "reference": "e7dafe215be5ef823392204535ee2e241f99a8cb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/woocommerce/action-scheduler/zipball/c33dd732e37c90f37c3f9662f7eed888c11dc60d", - "reference": "c33dd732e37c90f37c3f9662f7eed888c11dc60d", + "url": "https://api.github.com/repos/woocommerce/action-scheduler/zipball/e7dafe215be5ef823392204535ee2e241f99a8cb", + "reference": "e7dafe215be5ef823392204535ee2e241f99a8cb", "shasum": "" }, "require-dev": { @@ -449,7 +449,7 @@ "wp-cli/wp-cli": "~2.5.0", "yoast/phpunit-polyfills": "^1.0" }, - "time": "2023-09-13T13:40:20+00:00", + "time": "2023-10-11T18:24:47+00:00", "type": "wordpress-plugin", "extra": { "scripts-description": { @@ -467,7 +467,7 @@ "homepage": "https://actionscheduler.org/", "support": { "issues": "https://github.com/woocommerce/action-scheduler/issues", - "source": "https://github.com/woocommerce/action-scheduler/tree/3.6.3" + "source": "https://github.com/woocommerce/action-scheduler/tree/3.6.4" }, "install-path": "../woocommerce/action-scheduler" } diff --git a/lib/vendor/composer/installed.php b/lib/vendor/composer/installed.php index 57fc14761..cdc093f57 100644 --- a/lib/vendor/composer/installed.php +++ b/lib/vendor/composer/installed.php @@ -3,7 +3,7 @@ 'name' => '__root__', 'pretty_version' => 'dev-3.1-branch', 'version' => 'dev-3.1-branch', - 'reference' => '1d89b01c0fe442c028c463468a78c94bdc82b308', + 'reference' => 'ad04706e8cfa3de0b30d021180c7885ff36f75c1', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -13,7 +13,7 @@ '__root__' => array( 'pretty_version' => 'dev-3.1-branch', 'version' => 'dev-3.1-branch', - 'reference' => '1d89b01c0fe442c028c463468a78c94bdc82b308', + 'reference' => 'ad04706e8cfa3de0b30d021180c7885ff36f75c1', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -74,9 +74,9 @@ 'dev_requirement' => false, ), 'woocommerce/action-scheduler' => array( - 'pretty_version' => '3.6.3', - 'version' => '3.6.3.0', - 'reference' => 'c33dd732e37c90f37c3f9662f7eed888c11dc60d', + 'pretty_version' => '3.6.4', + 'version' => '3.6.4.0', + 'reference' => 'e7dafe215be5ef823392204535ee2e241f99a8cb', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../woocommerce/action-scheduler', 'aliases' => array(), diff --git a/lib/vendor/woocommerce/action-scheduler/action-scheduler.php b/lib/vendor/woocommerce/action-scheduler/action-scheduler.php index 42d54e71b..9aa59342e 100644 --- a/lib/vendor/woocommerce/action-scheduler/action-scheduler.php +++ b/lib/vendor/woocommerce/action-scheduler/action-scheduler.php @@ -5,7 +5,7 @@ * Description: A robust scheduling library for use in WordPress plugins. * Author: Automattic * Author URI: https://automattic.com/ - * Version: 3.6.3 + * Version: 3.6.4 * License: GPLv3 * Tested up to: 6.3 * Requires at least: 5.2 @@ -29,27 +29,27 @@ * @package ActionScheduler */ -if ( ! function_exists( 'action_scheduler_register_3_dot_6_dot_3' ) && function_exists( 'add_action' ) ) { // WRCS: DEFINED_VERSION. +if ( ! function_exists( 'action_scheduler_register_3_dot_6_dot_4' ) && function_exists( 'add_action' ) ) { // WRCS: DEFINED_VERSION. if ( ! class_exists( 'ActionScheduler_Versions', false ) ) { require_once __DIR__ . '/classes/ActionScheduler_Versions.php'; add_action( 'plugins_loaded', array( 'ActionScheduler_Versions', 'initialize_latest_version' ), 1, 0 ); } - add_action( 'plugins_loaded', 'action_scheduler_register_3_dot_6_dot_3', 0, 0 ); // WRCS: DEFINED_VERSION. + add_action( 'plugins_loaded', 'action_scheduler_register_3_dot_6_dot_4', 0, 0 ); // WRCS: DEFINED_VERSION. /** * Registers this version of Action Scheduler. */ - function action_scheduler_register_3_dot_6_dot_3() { // WRCS: DEFINED_VERSION. + function action_scheduler_register_3_dot_6_dot_4() { // WRCS: DEFINED_VERSION. $versions = ActionScheduler_Versions::instance(); - $versions->register( '3.6.3', 'action_scheduler_initialize_3_dot_6_dot_3' ); // WRCS: DEFINED_VERSION. + $versions->register( '3.6.4', 'action_scheduler_initialize_3_dot_6_dot_4' ); // WRCS: DEFINED_VERSION. } /** * Initializes this version of Action Scheduler. */ - function action_scheduler_initialize_3_dot_6_dot_3() { // WRCS: DEFINED_VERSION. + function action_scheduler_initialize_3_dot_6_dot_4() { // WRCS: DEFINED_VERSION. // A final safety check is required even here, because historic versions of Action Scheduler // followed a different pattern (in some unusual cases, we could reach this point and the // ActionScheduler class is already defined—so we need to guard against that). @@ -61,7 +61,7 @@ function action_scheduler_initialize_3_dot_6_dot_3() { // WRCS: DEFINED_VERSION. // Support usage in themes - load this version if no plugin has loaded a version yet. if ( did_action( 'plugins_loaded' ) && ! doing_action( 'plugins_loaded' ) && ! class_exists( 'ActionScheduler', false ) ) { - action_scheduler_initialize_3_dot_6_dot_3(); // WRCS: DEFINED_VERSION. + action_scheduler_initialize_3_dot_6_dot_4(); // WRCS: DEFINED_VERSION. do_action( 'action_scheduler_pre_theme_init' ); ActionScheduler_Versions::initialize_latest_version(); } diff --git a/lib/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Store.php b/lib/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Store.php index a55529332..faaaa9ed3 100644 --- a/lib/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Store.php +++ b/lib/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Store.php @@ -347,7 +347,7 @@ public function cancel_actions_by_hook( $hook ) { 'hook' => $hook, 'status' => self::STATUS_PENDING, 'per_page' => 1000, - 'orderby' => 'action_id', + 'orderby' => 'none', ) ); @@ -372,7 +372,7 @@ public function cancel_actions_by_group( $group ) { 'group' => $group, 'status' => self::STATUS_PENDING, 'per_page' => 1000, - 'orderby' => 'action_id', + 'orderby' => 'none', ) ); diff --git a/lib/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php b/lib/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php index f4d824eb2..602c3dd97 100644 --- a/lib/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php +++ b/lib/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php @@ -705,7 +705,7 @@ protected function bulk_cancel_actions( $query_args ) { array( 'per_page' => 1000, 'status' => self::STATUS_PENDING, - 'orderby' => 'action_id', + 'orderby' => 'none', ) ); diff --git a/lib/vendor/woocommerce/action-scheduler/readme.txt b/lib/vendor/woocommerce/action-scheduler/readme.txt index e3b87c2c8..e8b32021b 100644 --- a/lib/vendor/woocommerce/action-scheduler/readme.txt +++ b/lib/vendor/woocommerce/action-scheduler/readme.txt @@ -1,7 +1,7 @@ === Action Scheduler === Contributors: Automattic, wpmuguru, claudiosanches, peterfabian1000, vedjain, jamosova, obliviousharmony, konamiman, sadowski, royho, barryhughes-1 Tags: scheduler, cron -Stable tag: 3.6.3 +Stable tag: 3.6.4 License: GPLv3 Tested up to: 6.3 @@ -45,6 +45,13 @@ Collaboration is cool. We'd love to work with you to improve Action Scheduler. [ == Changelog == += 3.6.4 - 2023-10-11 = +* 3.6.3 release. +* Fix option lock test. +* Fix: Use orderby => 'none' when bulk cancelling actions. +* Tweak - WP 6.3 compatibility. +* Update PR unit tests matrix. + = 3.6.3 - 2023-09-13 = * Use `_doing_it_wrong` in initialization check. diff --git a/readme.txt b/readme.txt index 1af2b9b11..f865979f8 100644 --- a/readme.txt +++ b/readme.txt @@ -140,6 +140,11 @@ Yes, the PublishPress Future plugin allows you to schedule automatic changes to == Changelog == += [3.1.2] - 07 Nov, 2023 = + +* CHANGED: Update the library woocommerce/action-scheduler from 3.6.3 to 3.6.4; +* FIXED: Fix compatibility with WP 6.4 removing dependency of lodash, #555; + = [3.1.1] - 11 Oct, 2023 = * ADDED: Add new bulk action for posts to update future action scheduler based on post's metadata, #538;