Want to submit your first pull request to WP-CLI? We’ve identified a few good first issues for you to get your feet wet:
- Internalize like_escape() and esc_sql() functions to avoid $wpdb dependency
This issue involves copying some code out of WordPress core and replacing existing instances. - Scenario “Export posts using –max_num_posts” fails on Mac OS X
This issue involves updating the scenario to use the new pattern described in the referenced pull request. - Switch all help docs to third person singular form
The help docs for WP-CLI commands includes a mixture of first person and third person verbiage. For this issue, we need to make sure all maintained commands are in third person verbiage. - Correctly use “installation” instead of “install” in documentation
The word “install” is a verb. The correct word to use when referring to an instance of WordPress is “installation”. This issue will involve correcting all of these references.
If you’ve contributed to WP-CLI before, here are some reasonably well-defined issues we’d like to see pull requests for:
- Permit defining ABSPATH before WP-CLI is loaded
It should be possible to defineABSPATHbefore WP-CLI is loaded. This issue involves a simple conditional check, and some Behat tests to confirm expected behavior. - Move intra-doc links to someplace more prominent
The top of the command documentation page is less than ideal. If you can provide better HTML, I can incorporate it into the developer theme and commit to WordPress.org. - Way to distinguish between a user’s direct capabilities and those inherited from their role
wp user list-roles <user>returns both the capabilities that a user has been directly assigned, and the capabilities that they inherit from their role. For this issue, let’s add a new argument where the user can filter to the origin of the capabilities. - wp user remove-cap incorrectly returns success status when attempting to remove cap inherited from a role
It should instead produce an error stating that the capability is inherited from the role. This issue will involve adding the correct logic with a corresponding functional test.
Read through the contributing guide for details on how to get started. Feel free to ask questions on the specific issue, or join us in the #cli channel with any questions you might have.