+ above the line reading %3$s:' ),
+ 'wp-config.php
',
+ '' . $location_of_wp_config . '
',
+ /*
+ * translators: This string should only be translated if wp-config-sample.php is localized.
+ * You can check the localized release package or
+ * https://i18n.svn.wordpress.org//branches//dist/wp-config-sample.php
+ */
+ '/* ' . __( 'That’s all, stop editing! Happy publishing.' ) . ' */
'
+ );
+ ?>
+
+
- '',
- 'SECURE_AUTH_KEY' => '',
- 'LOGGED_IN_KEY' => '',
- 'NONCE_KEY' => '',
- 'AUTH_SALT' => '',
- 'SECURE_AUTH_SALT' => '',
- 'LOGGED_IN_SALT' => '',
- 'NONCE_SALT' => '',
- );
- foreach ( $keys_salts as $c => $v ) {
- if ( defined( $c ) ) {
- unset( $keys_salts[ $c ] );
+ '',
+ 'SECURE_AUTH_KEY' => '',
+ 'LOGGED_IN_KEY' => '',
+ 'NONCE_KEY' => '',
+ 'AUTH_SALT' => '',
+ 'SECURE_AUTH_SALT' => '',
+ 'LOGGED_IN_SALT' => '',
+ 'NONCE_SALT' => '',
+ );
+ foreach ( $keys_salts as $c => $v ) {
+ if ( defined( $c ) ) {
+ unset( $keys_salts[ $c ] );
+ }
}
- }
- if ( ! empty( $keys_salts ) ) {
- $keys_salts_str = '';
- $from_api = wp_remote_get( 'https://api.wordpress.org/secret-key/1.1/salt/' );
- if ( is_wp_error( $from_api ) ) {
- foreach ( $keys_salts as $c => $v ) {
- $keys_salts_str .= "\ndefine( '$c', '" . wp_generate_password( 64, true, true ) . "' );";
+ if ( ! empty( $keys_salts ) ) {
+ $keys_salts_str = '';
+ $from_api = wp_remote_get( 'https://api.wordpress.org/secret-key/1.1/salt/' );
+ if ( is_wp_error( $from_api ) ) {
+ foreach ( $keys_salts as $c => $v ) {
+ $keys_salts_str .= "\ndefine( '$c', '" . wp_generate_password( 64, true, true ) . "' );";
+ }
+ } else {
+ $from_api = explode( "\n", wp_remote_retrieve_body( $from_api ) );
+ foreach ( $keys_salts as $c => $v ) {
+ $keys_salts_str .= "\ndefine( '$c', '" . substr( array_shift( $from_api ), 28, 64 ) . "' );";
+ }
}
- } else {
- $from_api = explode( "\n", wp_remote_retrieve_body( $from_api ) );
- foreach ( $keys_salts as $c => $v ) {
- $keys_salts_str .= "\ndefine( '$c', '" . substr( array_shift( $from_api ), 28, 64 ) . "' );";
+ $num_keys_salts = count( $keys_salts );
+ ?>
+
+ wp-config.php'
+ );
+ } else {
+ printf(
+ /* translators: %s: wp-config.php */
+ __( 'These unique authentication keys are also missing from your %s file.' ),
+ 'wp-config.php
'
+ );
}
- }
- $num_keys_salts = count( $keys_salts );
- ?>
-
- wp-config.php'
- );
- } else {
- printf(
- /* translators: %s: wp-config.php */
- __( 'These unique authentication keys are also missing from your %s file.' ),
- 'wp-config.php
'
- );
+ ?>
+
+
+
+
-
-
-
-
-
+