Changeset 65874
- Timestamp:
- 12/03/2026 03:36:38 AM (17 hours ago)
- Location:
- trunk/tools/plugin-compatibility
- Files:
-
- 4 added
- 2 edited
-
fixtures/expected.txt (modified) (1 diff)
-
fixtures/fixture-redirects-in-admin (added)
-
fixtures/fixture-redirects-in-admin/fixture-redirects-in-admin.php (added)
-
fixtures/fixture-requires-redirects-in-admin (added)
-
fixtures/fixture-requires-redirects-in-admin/fixture-requires-redirects-in-admin.php (added)
-
test-plugins.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/plugin-compatibility/fixtures/expected.txt
r65872 r65874 25 25 fixture-requires-broken-dependency SKIPPED The required plugins are not healthy on their own 26 26 fixture-requires-wp-cli-only-fatal SKIPPED WP-CLI cannot load WordPress with the required plugins active 27 fixture-redirects-in-admin PASS 28 fixture-requires-redirects-in-admin PASS fixture-redirects-in-admin 27 29 28 30 # These two must stay together and in this order: the second fatals if anything the first wrote survived the -
trunk/tools/plugin-compatibility/test-plugins.sh
r65873 r65874 433 433 # launcher, such as the `bin/wp` of a Composer install, is run as it is and passed the limit through the 434 434 # `WP_CLI_PHP_ARGS` it reads. Handing a shell script to PHP would print it rather than run it. 435 # 436 # `--context=cli` keeps WP-CLI 3.0 and later from loading the admin for plugin commands, as 2.x did. In the 437 # admin, a redirect on `admin_init`, such as the one WooCommerce makes after activation, ends the command 438 # early with exit code 0. 435 439 wp() { 436 440 if [ "${WP_CLI_IS_LAUNCHER}" = "yes" ]; then 437 WP_CLI_PHP_ARGS="-d memory_limit=-1${WP_CLI_PHP_ARGS:+ ${WP_CLI_PHP_ARGS}}" "${WP_CLI_BIN}" "$@"441 WP_CLI_PHP_ARGS="-d memory_limit=-1${WP_CLI_PHP_ARGS:+ ${WP_CLI_PHP_ARGS}}" "${WP_CLI_BIN}" --context=cli "$@" 438 442 else 439 php -d memory_limit=-1 "${WP_CLI_BIN}" "$@"443 php -d memory_limit=-1 "${WP_CLI_BIN}" --context=cli "$@" 440 444 fi 441 445 }
Note:
See TracChangeset
for help on using the changeset viewer.