Happy release day!
Today, I’m excited to bring you WP-CLIWP-CLI WP-CLI is the Command Line Interface for WordPress, used to do administrative and development tasks in a programmatic way. The project page is http://wp-cli.org/ https://make.wordpress.org/cli/ v1.1.0, chock full of enhancements and bug fixes.
Want to get props in the next release? There are a few projects we’ll be working on:
- Creating a new WPorg home for wp-cli.org/commands and wp-cli.org/docs/internal-api [meta#2465]
- Splitting internal commands into distinct packages [#3728]
- Transforming some ideas into working prototypes.
And, in case you missed it: I’m looking for help maintaining WP-CLI (paid opportunity, commitment of 5-10 hours/week). Know someone who might fit? Email [email protected] or pingPing The act of sending a very small amount of data to an end point. Ping is used in computer science to illicit a response from a target server to test it’s connection. Ping is also a term used by Slack users to @ someone or send them a direct message (DM). Users might say something along the lines of “Ping me when the meeting starts.” ‘danielbachhuber’ on the WordPress SlackSlack Slack is a Collaborative Group Chat Platform https://slack.com/. The WordPress community has its own Slack Channel at https://make.wordpress.org/chat/.
Everything in 1.1.0
Command improvements:
wp cache *:- Explicitly sets default cache group as ‘default’ to replicate WordPress’ behavior [#3714]
wp cache type:- Detects W3 Total Cache object cache [#3637]
wp (comment|post|user) list:wp core config:- Introduces
--forceparameter for overwriting existingwp-config.phpfile [#3706]
- Introduces
wp core is-installed:- Prevents error notice from
wp_guess_url()when coreCore Core is the set of software required to run WordPress. The Core Development Team builds WordPress. isn’t installed [#3711]
- Prevents error notice from
wp core language install:- Passes
$wp_versionthrough totranslations_api()so that WordPress reports the correct language download file [#3748]
- Passes
wp core update:- Supports
--version=(nightly|trunk), which will download the latest nightly build [#3645]
- Supports
wp core update-db:- Updates
wpmu_upgrade_siteoption for all networks, not just current, to ensure the admin notice is dismissed [#3659]
- Updates
wp db *:- Runs help at the same point as the command, to enable
wp help db importto be run when WordPress has been downloaded, a wp-config.php has been created, but WordPress hasn’t yet been installed [#3780]
- Runs help at the same point as the command, to enable
wp db cli:- Makes it possible to pass arguments through to the
mysqlexecutable [#3745]
- Makes it possible to pass arguments through to the
wp db export:- Appends a random hash to generated SQL file to help mitigate database files from being accessible at predictable URLs [#3765]
wp media regenerate:- Support generating thumbnails for ‘application/pdf’ for WordPress 4.7+ [#3768]
wp plugin install:- Correctly installs ZIPs uploaded to the GitHubGitHub GitHub is a website that offers online implementation of git repositories that can easily be shared, copied and modified by other developers. Public repositories are free to host, private repositories require a paid subscription. GitHub introduced the concept of the ‘pull request’ where code changes done in branches by contributors can be reviewed and discussed before being merged by the repository owner. https://github.com/ release page for a project [#3776]
- Displays error message when a pluginPlugin A plugin is a piece of software containing a group of functions that can be added to a WordPress website. They can extend functionality or add new features to your WordPress websites. WordPress plugins are written in the PHP programming language and integrate seamlessly with WordPress. These can be free in the WordPress.org Plugin Directory https://wordpress.org/plugins/ or can be cost-based plugin from a third-party. cannot be installed due to write permissions [#3764]
wp scaffold plugin:- Ignores
multisite.xml.distin scaffolded.distignore[#3677]
- Ignores
wp scaffold plugin-tests:- Opts-in to container-based infrastructure on Travis [#3739]
- Supports PHPPHP PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. https://www.php.net/manual/en/index.php 7.1 and PHPUnit 5.7 when scaffolding
.travis.yml[#3758] - Updates GitLab template to run WPCSWordPress Community Support A public benefit corporation and a subsidiary of the WordPress Foundation, established in 2016. tests [#3772]
wp scaffold (plugin-tests|theme-tests):- Validates plugin/theme slug to prevent you from scaffolding tests into an unexpected directory [#3666]
wp scaffold _s:- Validates theme slug earlier to provide a more understandable error [#3724]
wp search-replace:wp server:- Sets the path global parameter as docroot [#3700]
wp site create:- Replicates core logic for creating
$newdomainand$pathto form proper path then global$baseisn’t ‘/’ [#3688]
- Replicates core logic for creating
wp site option list:- Adds
--site_id=<id>filterFilter Filters are one of the two types of Hooks https://codex.wordpress.org/Plugin_API/Hooks. They provide a way for functions to modify data of other functions. They are the counterpart to Actions. Unlike Actions, filters are meant to work in an isolated manner, and should never have side effects such as affecting global variables and output. [#3769]
- Adds
wp theme install:- Uses httpHTTP HTTP is an acronym for Hyper Text Transfer Protocol. HTTP is the underlying protocol used by the World Wide Web and this protocol defines how messages are formatted and transmitted, and what actions Web servers and browsers should take in response to various commands. cacher when automatically installing a parent theme [#3689]
wp theme mod get:- Introduces
--field=<field>argument for fetching a particular field [#3644]
- Introduces
Framework enhancements:
- Updates Composer-based dependencies to latest [#3638, #3676, #3678, #3698, #3720, #3786]
- Ensures passed positionals take precedent over defaults defined in
wp-cli.yml[#3648] WP_CLI::runcommand()correctly persists current process’ environment variables [#3683, #3730]- Removes backslashes from display of path when destination folder already exists [#3691]
- Globalizes
wp-config.phpvariables to local scope too, enabling WordPress to properly change$table_prefixin multisiteMultisite Multisite is a WordPress feature which allows users to create a network of sites on a single WordPress installation. Available since WordPress version 3.0, Multisite is a continuation of WPMU or WordPress Multiuser project. WordPress MultiUser project was discontinued and its features were included into WordPress core. Advanced Administration Handbook -> Create A Network. [#3695] - Adds global parameters to bash completion [#3697]
- Permits dots to be used in aliases [#3705]
- Introduce a Behat step for replacing a string in a file [#3712]
Contributors to this release (pull requests, documentation, and package authors): amq, bgeihsgt, danielbachhuber, edpittol, ernilambar, greatislander, inderpreet99, louisremi, lwh, metodiew, migueldemoura, miya0001, mmcev106, nikschavan, ntwb, nylen, ocean90, ramoonus, rosswintle, szepeviktor, trepmal, westonruter
You can browse the full list of resolved issues on Github.