Just in time for your crazy load of summer projects, we have a new version of WP-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/ for you. Here’s what’s new.
Manage WP-Cron
Confused by how WP-Cron is acting? Wonder no more!
See all scheduled cron events:
$ wp cron event list
+-----------------------------+---------------------+-----------------------+------------+
| hook | next_run_gmt | next_run_relative | recurrence |
+-----------------------------+---------------------+-----------------------+------------+
| wp_version_check | 2014-07-01 04:05:59 | 3 hours 50 minutes | 12 hours |
| wp_update_plugins | 2014-07-01 04:05:59 | 3 hours 50 minutes | 12 hours |
| wp_update_themes | 2014-07-01 04:05:59 | 3 hours 50 minutes | 12 hours |
| update_network_counts | 2014-07-01 04:06:05 | 3 hours 50 minutes | 12 hours |
| wp_maybe_auto_update | 2014-07-01 07:51:00 | 7 hours 35 minutes | 12 hours |
| wp_scheduled_delete | 2014-07-01 16:06:05 | 15 hours 50 minutes | 1 day |
+-----------------------------+---------------------+-----------------------+------------+
Run a specific cron event:
$ wp cron event run wp_scheduled_delete
Success: Successfully executed the cron event 'wp_scheduled_delete'
Inspect registered cron schedules:
$ wp cron schedule list
+------------+-------------+----------+
| name | display | interval |
+------------+-------------+----------+
| hourly | Once Hourly | 3600 |
| twicedaily | Twice Daily | 43200 |
| daily | Once Daily | 86400 |
+------------+-------------+----------+
Take a look at wp help cron
for the full details.
Verify core Core is the set of software required to run WordPress. The Core Development Team builds WordPress. checksums
To help you confirm the sanctity of your WordPress install, wp core verify-checksums
fetches checksums from WordPress.org The community site where WordPress code is created and shared by the users. This is where you can download the source code for WordPress core, plugins and themes as well as the central location for community conversations and organization. https://wordpress.org/ and compares them to that of your local files.
For the layperson, a checksum is a calculation of a file’s contents using the MD5 algorithm. To generate a checksum is to produce a 32 digit hexadecimal number that represents the file’s state. WP-CLI’s wp core verify-checksums
command downloads WordPress.org’s reported checksums for each core file, and then compares those values to the checksum it calculates for each local file. If the values differ, then it’s an indication the file’s contents differ from what they should be.
A successful check will look like this:
$ wp core verify-checksums
Success: WordPress install verifies against checksums.
If any core files have been modified, you’ll see something like this:
$ wp core verify-checksums
Warning: File doesn't verify against checksum: readme.html
Error: WordPress install doesn't verify against checksums.
A new look
WP-CLI.org received a much-appreciated fresh coat of paint. Share the love on Twitter (or report any bugs in the issue tracker).
Other changes
Additions:
wp * meta list
: list meta Meta is a term that refers to the inside workings of a group. For us, this is the team that works on internal WordPress sites like WordCamp Central and Make WordPress. values for a given post, comment, or user
wp * meta delete
: supports passing a value to match against, mimicking core behavior
wp post generate
: the --post_author=<post-author>
argument supports user ID, login, or email address
wp scaffold plugin
: includes a sample readme.txt
wp (theme|plugin) install
: creates parent directories if they don’t yet exist
wp user create
: added --first_name=<first-name>
and --last_name=<last-name>
parameters
wp user import-csv
: a --skip-update
flag will prevent updating existing users
- Clearer, more helpful messages and warnings across the board
Fixes:
- Plugins with
Network: True
header The header of your site is typically the first thing people will experience. The masthead or header art located across the top of your page is part of the look and feel of your website. It can influence a visitor’s opinion about your content and you/ your organization’s brand. It may also look different on different screen sizes. activate without throwing a warning on non-multisite 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.https://codex.wordpress.org/Create_A_Network. installs
- Disabled commands no longer appear in usage docs
- Autocompletion file works properly for both bash and ZSH
wp core update
: can update directly from a ZIP file
You can browse the full list of resolved issues on Github 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 be the repository owner. https://github.com/.
Contributors to this release: boonebgorges, danielbachhuber, jmslbam, johnbillion, joshlevinson, mboynes, rodrigoprimo, ryanduff, scribu, szepeviktor, westonruter