Skip to content

Commit

Permalink
Merge pull request #59 from thefrosty/develop
Browse files Browse the repository at this point in the history
Develop -> master
  • Loading branch information
thefrosty authored Nov 2, 2021
2 parents 7812f2d + f1766b8 commit e1be51d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
17 changes: 4 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,14 @@ cache:
language: php
php:
- '7.4'
- '8.0'

jobs:
allow_failures:
- php: 8.0

branches:
only:
- master
- develop
- "/^.*[Ff]eature\\/.*$/"
- "/^.*[rR]elease\\/.*$/"
- "/^.*[bB]ug\\/.*$/"
- "/^.*[Hh]otfix\\/.*$/"

env:
global:
Expand All @@ -39,13 +37,6 @@ install:
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- export DEV_BIN_PATH=bin
- source $DEV_BIN_PATH/create-all-branches.sh
- |
# Remove Xdebug for a huge performance increase:
if [ -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ]; then
phpenv config-rm xdebug.ini
else
echo "xdebug.ini does not exist"
fi
- composer require --dev --no-update roots/wordpress:${WP_VERSION} wp-phpunit/wp-phpunit:${WP_VERSION}
- composer update --prefer-dist --no-interaction --prefer-stable --no-suggest

Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## Unreleased

## [2.5.1] - 2021-11-02
- Fix: Add `--user` flag as option for CLI request, defaulting to `0` to avoid error on completed model.

## [2.5.0] - 2021-11-01
- Update: PHP minimum version is now `7.4`.
- Change: The CLI command to run all tasks is now: `$ wp upgrade-task-runner`.
Expand Down
7 changes: 7 additions & 0 deletions src/Cli/DispatchTasks.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ public function addHooks(): void
*
* [--task=<class>]
* : The fully qualified registered task to run.
* ---
*
* [--user=<id>]
* : The user ID to associate with running said task(s).
* ---
*
* @param mixed $args
* @param mixed $assoc_args
* @phpcs:disable SlevomatCodingStandard.Functions.UnusedParameter.UnusedParameter
Expand Down Expand Up @@ -83,6 +89,7 @@ private function dispatchTaskRunner($args, $assoc_args): void
if (\is_string($task) && !empty($task) && $option_key !== $sanitize($task)) {
continue;
}
$field->setUserId(\absint(get_flag_value($assoc_args, 'user', 0)));
$field->getTaskRunner()->dispatch($field);
$run[] = \get_class($field);
}
Expand Down
2 changes: 1 addition & 1 deletion upgrade-task-runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Plugin Name: Upgrade Task Runner
* Plugin URI: https://github.com/thefrosty/wp-upgrade-task-runner
* Description: A WordPress plugin for developers to write custom migration tasks.
* Version: 2.5.0
* Version: 2.5.1
* Author: Austin Passy
* Author URI: https://github.com/thefrosty
* Requires at least: 5.4
Expand Down

0 comments on commit e1be51d

Please sign in to comment.