* --extra-php
* : If set, the command reads additional PHP code from STDIN.
*
- * --keys-and-salts
- * : Use existing secrets versus generating afresh as the default behavior.
+ * --skip-salts
+ * : If set, keys and salts won't be generated, but, instead, should be passed via --extra-php.
*
* ## EXAMPLES
*
* define( 'WP_DEBUG_LOG', true );
* PHP
*
- * @synopsis --dbname=<name> --dbuser=<user> [--dbpass=<password>] [--dbhost=<host>] [--dbprefix=<prefix>] [--locale=<locale>] [--extra-php]
+ * @synopsis --dbname=<name> --dbuser=<user> [--dbpass=<password>] [--dbhost=<host>] [--dbprefix=<prefix>] [--locale=<locale>] [--extra-php] [--skip-satls]
*/
public function config( $_, $assoc_args ) {
if ( Utils\locate_wp_config() ) {
}
// TODO: adapt more resilient code from wp-admin/setup-config.php
- if ( ! isset( $assoc_args['keys-and-salts'] ) ) {
+ if ( ! isset( $assoc_args['skip-salts'] ) ) {
$assoc_args['keys-and-salts'] = self::_read(
'https://api.wordpress.org/secret-key/1.1/salt/' );
}