WordPress.org

Make WordPress Core

Ticket #11523: 11523.3.patch

File 11523.3.patch, 1.6 KB (added by hakre, 4 years ago)

Consolidated patch (merged 2 prior patches into one)

  • wp-config-sample.php

    ### Eclipse Workspace Patch 1.0
    #P wordpress-trunk
     
    1616 
    1717// ** MySQL settings - You can get this info from your web host ** // 
    1818/** The name of the database for WordPress */ 
    19 define('DB_NAME', 'putyourdbnamehere'); 
     19define('DB_NAME', 'dbnamehere'); 
    2020 
    2121/** MySQL database username */ 
    2222define('DB_USER', 'usernamehere'); 
    2323 
    2424/** MySQL database password */ 
    25 define('DB_PASSWORD', 'yourpasswordhere'); 
     25define('DB_PASSWORD', 'passwordhere'); 
    2626 
    2727/** MySQL hostname */ 
    2828define('DB_HOST', 'localhost'); 
  • wp-admin/setup-config.php

     
    169169        foreach ($configFile as $line_num => $line) { 
    170170                switch (substr($line,0,16)) { 
    171171                        case "define('DB_NAME'": 
    172                                 $configFile[$line_num] = str_replace("putyourdbnamehere", $dbname, $line); 
     172                                $configFile[$line_num] = str_replace("dbnamehere", $dbname, $line); 
    173173                                break; 
    174174                        case "define('DB_USER'": 
    175175                                $configFile[$line_num] = str_replace("'usernamehere'", "'$uname'", $line); 
    176176                                break; 
    177177                        case "define('DB_PASSW": 
    178                                 $configFile[$line_num] = str_replace("'yourpasswordhere'", "'$passwrd'", $line); 
     178                                $configFile[$line_num] = str_replace("'passwordhere'", "'$passwrd'", $line); 
    179179                                break; 
    180180                        case "define('DB_HOST'": 
    181181                                $configFile[$line_num] = str_replace("localhost", $dbhost, $line);