Skip to content

Instantly share code, notes, and snippets.

@jasondewitt
Last active June 2, 2016 21:00
Show Gist options
  • Select an option

  • Save jasondewitt/08c234697e3428738dbf69ae9c46bb31 to your computer and use it in GitHub Desktop.

Select an option

Save jasondewitt/08c234697e3428738dbf69ae9c46bb31 to your computer and use it in GitHub Desktop.

Revisions

  1. Jason DeWitt revised this gist Jun 2, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    for x in $(wp --allow-root site list --fields=domain --format=csv);
    for x in $(wp site list --fields=domain --format=csv);
    do
    if [ $x != 'domain' ];
    then
    wp --allow-root search-replace http://$x https://$x --network --url=$x
    wp search-replace http://$x https://$x --network --url=$x
    fi
    done
  2. Jason DeWitt created this gist Jun 2, 2016.
    7 changes: 7 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    for x in $(wp --allow-root site list --fields=domain --format=csv);
    do
    if [ $x != 'domain' ];
    then
    wp --allow-root search-replace http://$x https://$x --network --url=$x
    fi
    done