Last active
July 8, 2017 03:00
-
-
Save jmslbam/7267856 to your computer and use it in GitHub Desktop.
WP-CLI snippet solutions collected from WP-CLI issues
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Provide a way to upgrade the network after `wp core update` | |
# https://github.com/wp-cli/wp-cli/issues/683 | |
for url in $(wp site list --fields=url --format=csv | tail -n +2) | |
do | |
wp --url=$url core update-db | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment