Ticket #11523: 11523.3.patch
File 11523.3.patch, 1.6 KB (added by , 14 years ago) |
---|
-
wp-config-sample.php
### Eclipse Workspace Patch 1.0 #P wordpress-trunk
16 16 17 17 // ** MySQL settings - You can get this info from your web host ** // 18 18 /** The name of the database for WordPress */ 19 define('DB_NAME', ' putyourdbnamehere');19 define('DB_NAME', 'dbnamehere'); 20 20 21 21 /** MySQL database username */ 22 22 define('DB_USER', 'usernamehere'); 23 23 24 24 /** MySQL database password */ 25 define('DB_PASSWORD', ' yourpasswordhere');25 define('DB_PASSWORD', 'passwordhere'); 26 26 27 27 /** MySQL hostname */ 28 28 define('DB_HOST', 'localhost'); -
wp-admin/setup-config.php
169 169 foreach ($configFile as $line_num => $line) { 170 170 switch (substr($line,0,16)) { 171 171 case "define('DB_NAME'": 172 $configFile[$line_num] = str_replace(" putyourdbnamehere", $dbname, $line);172 $configFile[$line_num] = str_replace("dbnamehere", $dbname, $line); 173 173 break; 174 174 case "define('DB_USER'": 175 175 $configFile[$line_num] = str_replace("'usernamehere'", "'$uname'", $line); 176 176 break; 177 177 case "define('DB_PASSW": 178 $configFile[$line_num] = str_replace("' yourpasswordhere'", "'$passwrd'", $line);178 $configFile[$line_num] = str_replace("'passwordhere'", "'$passwrd'", $line); 179 179 break; 180 180 case "define('DB_HOST'": 181 181 $configFile[$line_num] = str_replace("localhost", $dbhost, $line);