Skip to content

Instantly share code, notes, and snippets.

@lucas-pelton
Created February 24, 2017 19:07
Show Gist options
  • Save lucas-pelton/18eec230c427a812b5798233c239f289 to your computer and use it in GitHub Desktop.
Save lucas-pelton/18eec230c427a812b5798233c239f289 to your computer and use it in GitHub Desktop.
prefix="<?php
/**#@+
Authentication Unique Keys and Salts.
Change these to different unique phrases!
You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
*/"
for salt in `find ./ -name wp-salt.php`; do echo "$prefix" > $salt; curl https://api.wordpress.org/secret-key/1.1/salt/ >> $salt; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment