Allow getting from global groups by force#39
Allow getting from global groups by force#39trepmal wants to merge 7469 commits intowp-cli:masterfrom
Conversation
Abstract `wp server` back to wp-cli/server-command
…equirements to PHP 5.4+. The PR to lower the PHP requirements for the original was rejected: pyrech/composer-changelogs#44
Abstract `wp shell` to wp-cli/shell-command
This should always be 'latest'. Also include 'nightly' for testing.
* Explicitly identify each job in the build matrix * Run tests against PHP 7.1 and 7.0 * Only run `phpcs` once, instead of with every job * Run multisite tests on each job
Update support policy to mention WordPress.org forums
Abstract `wp eval` to wp-cli/eval-command
Warn user when managing rewrite rules while skipping plugins/themes
This reverts commit 4455b37.
Variety of improvements to scaffolded `.travis.yml` and `circle.yml`
Permit `dev-master` for required WP-CLI packages
…output. Pipe `wc` output through `tr` to delete the indentation, so that the output is consistent across all platforms and the tests all behave in the same way. Fixes #3925
Fix broken tests by removing platform-specific indentation from `wc` output.
Permit WP-CLI to be built as a phar when dependency of another project
Fixes #3929
Instead of using the PHP 5.3+ fork from my personal account ([`schlessera/composer-changelogs`](https://github.com/schlessera/composer-changelogs)), use the one from the `wp-cli` organization instead: [`wpcli/composer-changelogs`](https://github.com/wp-cli/composer-changelogs).
|
@trepmal Still up for writing the tests for this? |
|
@trepmal Gentle ping to find out whether you're still interested in completing this PR. |
Move PHP 5.4 tests from `WP_VERSION` `latest` to `5.1`
Prefix variables in global namespace
Enhancement: Add PHP 7.3 to Travis CI build matrix
Use prefix `wpcli_` instead of `wp_cli_`
... as that version contains the new WPCliCS PHPCS standard.
* `.distignore`: no need to distribute the phpcs/phpunit config files.
* `.gitignore`: Allow devs to overwrite config files for PHPUnit and PHPCS
- The `.dist` files should be committed. However, for their personal use, devs can overrule those files with versions without `.dist`.
Those personal versions should never be committed.
As a side-note: for PHPCS, having a personal version while still using the original `.dist` file is made very easy, as you can just import the `.dist` file as a starting point, like so:
```xml
<?xml version="1.0"?>
<ruleset name="WP-CLI">
<rule ref="./phpcs.xml.dist"/>
</ruleset>
```
The file is completely documented in-line.
Only minimal changes needed.
Update to latest tests package
Implement CS checking based on the WPCliCS ruleset
Add preliminary PHP 7.4 testing
|
Working on this again... finally... My manual tests are okay, but I'm having trouble getting behat tests to give the expected results. Example: Whereas, if I run the mu-plugin in a regular WP environment (no object-cache.php): |
|
Hi @trepmal - been looking into this as we have a need for this to support I'm getting same result as you with the behat tests. If I change it to a multisite test though (by changing Looking through https://github.com/WordPress/WordPress/blob/master/wp-includes/class-wp-object-cache.php it seems the only place Does this match up with what you're seeing? |
|
@trepmal I'm sorry, it seems a push I did to the master branch rewrote that one so badly that this PR is pointing into the void and was therefore automatically closed. Are you able to rebase it from your fork onto the new master branch to recreate a PR? If not, let me know, and I'll assemble the standalone commits you've made into a separate PR. |
This could be a weirdish edge case, I'll do my best to explain...
I have batcache's advanced-cache.php installed.
Batcache puts its group,
batcache, in the global groups (line 139).However, WP-CLI doesn't load advanced-cache.php.
So given a cached page with key
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxand groupbatcache, I can't fetch with WP-CLI:With this patch, I can force WPCLI to put the given group in the global groups before fetching (manually truncated results):