WordPress.org

Make WordPress Core

Ticket #15092: clipboard.txt

File clipboard.txt, 1.1 KB (added by hakre, 5 years ago)

once

Line 
1Index: wp-admin/network.php
2===================================================================
3--- wp-admin/network.php        (revision 15970)
4+++ wp-admin/network.php        (working copy)
5@@ -355,15 +355,16 @@
6                                $keys_salts[ $c ] = substr( array_shift( $from_api ), 28, 64 );
7                        }
8                }
9+               $key_salts_config = '';
10+               foreach ( $keys_salts as $c => $v ) {
11+                       $key_salts_config .= "\ndefine( '{$c}', '{$v}' );";
12+               }
13                $num_keys_salts = count( $keys_salts );
14 ?>
15        <p><?php
16                echo _n( 'This unique authentication key is also missing from your <code>wp-config.php</code> file.', 'These unique authentication keys are also missing from your <code>wp-config.php</code> file.', $num_keys_salts ); ?> <?php _e( 'To make your installation more secure, you should also add:' ) ?></p>
17-       <textarea class="code" readonly="readonly" cols="100" rows="<?php echo $num_keys_salts; ?>"><?php
18-       foreach ( $keys_salts as $c => $v ) {
19-               echo "\ndefine( '$c', '" . wp_htmledit_pre( $v ) . "' );";
20-       }
21-?></textarea>
22+       <textarea class="code" readonly="readonly" cols="100" rows="<?php echo $num_keys_salts; ?>">
23+<?php echo wp_htmledit_pre( $key_salts_config ); ?></textarea>
24 <?php
25        }
26 ?>