Closed schlessera closed 3 years ago
@schlessera I’m not sure if I am understanding correctly what this patch is supposed to do, or if I am using the export cli command correctly, but if I do and I am, then this patch doesn’t seem to be doing what I think it should be doing.
Here’s my steps and my results:
wp package install git@github.com:wp-cli/export-command.git
wp export --post_type=page --author=<my-userid> --skip_comments --stdout > page.xml
The resulting file (page.xml) has thousands of <wp:author>
items in it. I expected that it would only have the one for my-userid
.
Am I misunderstanding this patch or doing something wrong?
Hello @schlessera ^^
@pjv This patch is not part of the v2.5.0 release. To test it, you'll need to use the latest nightly version of WP-CLI. You can update to the latest nightly version with the following command:
wp cli update --nightly
@schlessera Thank you, but shouldn't doing this:
wp package install git@github.com:wp-cli/export-command.git
override the built-in wp cli export command with the current master branch of this repo?
Instead of adding all users unconditionally, only add the one user that is needed when filtering by a specific
--author
.Fixes #67