All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Fix: Add
--user
flag as option for CLI request, defaulting to0
to avoid error on completed model. - Update: Dependencies updated to latest version.
- WordPress to 5.9.1.
- PHPUnit to ^9.
- Update composer to support Composer version 2.2.x.
- Fix: Add
--user
flag as option for CLI request, defaulting to0
to avoid error on completed model.
- Update: PHP minimum version is now
7.4
. - Change: The CLI command to run all tasks is now:
$ wp upgrade-task-runner
.- Add new flag to run specific task: $ wp upgrade-task-runner --task=Fully\Qualified\Name`
- Fix: Conditional loading of the CLI Dispatcher class is now differed until
init
, which avoids some PHP errors.
- Fix: Make sure
UpdateModel
implementsCountable
. - Fix: Make sure
TaskCountCheck
checks for existing model arrays in array search. - Add missing version to root plugin file.
- Fix: Cannot inherit previously-inherited or override constant DATE from interface
- Update thefrosty/wp-utilities requirement from ^1.7 to ^2.0 #32
- Update dealerdirect/phpcodesniffer-composer-installer requirement from ^0.4.3 to ^0.7.0 #21
- Add check in JS for run link confirmation callback.
- [NEW] Bumped "Requires at least" to WordPress 5.4.
- [NEW] Bumped "tested up to" to WordPress 5.5.
- JS should now show event scheduled after clicking "run".
- If deprecated or old tasks are removed from registration but exist in the DB, a new cleanup task can be run.
- Add role cap checks (filterable) to view the settings page (tasks) and run tasks.
Upgrade::TAG_VIEW_SETTINGS_PAGE_CAP
defaults tolist_users
Upgrade::TAG_UPGRADE_TASKS_CAP
defaults topromote_users
- Add public method for
UpgradesListTable
inTaskRunner\Upgrade
.- Change response on AJAX action to include scheduled cron event object data (passed to JS).
- Allow negative task count to show warning and allow internal re-count task (notice count).
- Move shared "upgrade" code into abstraction.
- Introduce new task count upgrade class for when old tasks are removed from the codebase but exist in the DB.
- Update Symfony HTTP Foundation
- Fix inconsistencies with WordPress' do_action modifying the args passed in as an array of objects into the object when the array count is only 1.
- Added wp-cli command to run all registered tasks not already run.
- Use
$ wp wp-upgrade-task-runner
- Use
- Bump PHP requirement >= 7.3.
- Bump WordPress requirement >= 5.1.
- Update the PHP and WordPress versions in Travis.
- Remove the PHPMD library.
- Update the gitattributes to ignore /vendor and itself.
- Update minimum PHP version, upgrade symfony/http-foundation to version 4.2.12 or later or version 5.
- Bump PHP Unit and WP PHP Unit.
- Remove PHPMD in composer scripts and bin/.
- Adding new Option class for settings integrations.
- Cleanup of the Service Provider since a factory isn't needed in a DI model.
- All tasks need to be their
clearScheduledEvent
method to be updated, see ExampleMigrationTask.php, as a second param is now required to pass in theUpgradeModel
, which is injected into thedispatch
method.
- Make sure WordPress' option for
timezone_string
returns a string, update to use helper method which will call WordPress's newwp_timezone_string
if available (WordPress >= 5.3) otherwise uses it's code. Fixes #9.
- Allow Symfony Http Foundation 4.
- Ready for public release.
- Loading of classes now initiated on plugins_loaded priority 5 instead of conditional checks for admin and AJAX.
- Removed string check on tasks array key checks.
- getOption not loading. Moved from
UpgradesListTable
toUpgrade
and renamed to getOptions.
- Moved
getNonceKeyValue
method fromUpgradesListTable
toUpgrade
since UpgradesListTable is no longer loaded outside the dashboard (settings) page, which causes a null return value on AJAX requests stopping the execution and throwing a 500 server error. - Added version value to all registered assets.
- Add missing CSS file, and update location of registered scripts and styles pointing to incorrect directory.
- Rewrite to fix errors during initial rewrite for inclusion of WP_List_Table class called too early in container provider.
- Version 1.0.0 released tag. (reverted to to errors)
- Initial release (fork from project).