Make WordPress Core

Ticket #28551: 28551.patch

File 28551.patch, 10.0 KB (added by siobhan, 10 years ago)

better wp-config

  • wp-config-sample.php

     
    11<?php
     2//   ____             __ _                       _   _
     3//  / ___|___  _ __  / _(_) __ _ _   _ _ __ __ _| |_(_) ___  _ __  ___
     4// | |   / _ \| '_ \| |_| |/ _` | | | | '__/ _` | __| |/ _ \| '_ \/ __|
     5// | |__| (_) | | | |  _| | (_| | |_| | | | (_| | |_| | (_) | | | \__ \
     6//  \____\___/|_| |_|_| |_|\__, |\__,_|_|  \__,_|\__|_|\___/|_| |_|___/
     7//                         |___/
     8//         __   _   _
     9//   ___  / _| | |_| |__   ___
     10//  / _ \| |_  | __| '_ \ / _ \
     11// | (_) |  _| | |_| | | |  __/
     12//  \___/|_|    \__|_| |_|\___|
     13//
     14// __        __            _ ____                    _
     15// \ \      / /__  _ __ __| |  _ \ _ __ ___  ___ ___| |
     16//  \ \ /\ / / _ \| '__/ _` | |_) | '__/ _ \/ __/ __| |
     17//   \ V  V / (_) | | | (_| |  __/| | |  __/\__ \__ \_|
     18//    \_/\_/ \___/|_|  \__,_|_|   |_|  \___||___/___(_)
     19//
     20//                              .;:llc:,
     21//                        ,;:okk00O000OOx,.
     22//                     ,o0XKKXKK00O0O0000OOxo:
     23//                   .xNNXXXXXXKKKKO00K000OOO00o.
     24//                   :NNNNNNNXXXKKXKKKKK00OkkO0KK:
     25//                   xNNNXXK00KXXXKKK0Okdolccco0K0c
     26//                   ONX0Oxdolldxxdolc:;;,,,,,,lO0k
     27//                   OXOddoollcccc:;;;,,,'''',,;dOO.
     28//                  .XXOdddoolcccc::;,,,,,'',,,;lOO.
     29//                  .KN0xddoollcccc::;;,,,'',,,;lO0.
     30//                   ONKxddoollcc::::;;,',,,;:;;cO0'
     31//                   cNKxxkOkkxdlc:;:;;:ldxxdol::OO,
     32//                   .XXxxOO0KKK0koc:,;lxOOxdo:;;xx.
     33//                   .kKxdxkkkkk0Oxl;',;lol:::;,,lx'
     34//                    k0xoooodddxxdc,',,,;;::;,',cl.
     35//                    ,Okoolllodxxdc;,,,;;;;,''',;.
     36//                     ':oollldkkxdc,,,;;;clc;,,'
     37//                       ,doodxxxxkxc::;,,,;cl;;'
     38//                       .xdldxkkddolc;,,coccc;;'
     39//                        'dlcodkxdocl;:::,::;::'
     40//                         ckxddddddolc;,,:::cc;.
     41//                         .xkkxddoollc:;:::ll;,''.
     42//                         .dxkOkkxlcooc::llc;;,,,,'.;,...
     43//                         .ddxkkOOkdxkxolc::;,,,,,',odddlll:,'.
     44//                        ,dddddxxkxddol::;;,,,,,,,,ldxxdoooooool:;,..
     45//                     'cdOOddddddddoc:;;;;;,,,''',ldxxddddddddddddooolc:;.
     46//                  'ldxkkOOxodddoooolc::;;;,,,,;ldxxxddddddddxxxxxxxxdddooc.
     47//               ':odxkkkkO00Oxddolcc::::::;,:lxkkkxddddddddxxxxxxxxxxxxddddoc.
     48//            .;ddxxkkkkkOOO0000Okdl::clooodxOOOOkkxxxxxxxxxxxxxxxxkkkkkdxxdddl,
     49//         .:ldxxkkkkkkOO0000OO00000OOOOO0OOOOOkkkkkxxxxxxxxxxxxxxkkkxOkdkxdxddo;
     50//        ;ddxxkkkkkkkO00000000OOOOOOOOOOOOOOkkkkkkkxxxxxxxxxxxxxxkkOxkxxOkxxxddoc
     51//       okdxkOOOOOkkOO00000000OOOOOOOOOOOOOkkkkkkkkxxxxxxxxxxxxxxxk0Okxk0kxxxdddo:
     52//      ,k0kxkkkkOkkOO0000000000OOOOOOOOOOkkkkkkkkkkxxxxxxxxxxxxxxdxO00xk0Oxxxxdxxl
     53//      cOKKOkOOOOOO000000000000OOOOOOOOOOkkkkkkkkkkkkkkkxxxxxxxxdddxOKkx00xxkxxxkd
     54//      x0KX0kOOOOO00K0O0O00000000OOOOOOOOOOkkkkkkkkkkkkkkxxxxxxkxdddk0OxOKxxkxxxkk
     55
    256/**
    357 * The base configurations of the WordPress.
    458 *
     
    1468 * @package WordPress
    1569 */
    1670
     71/**
     72 *  ;;;;;;;;;;;;;;;;;;;;
     73 *  ;; MySQL Settings ;;
     74 *  ;;;;;;;;;;;;;;;;;;;;
     75 */
     76
    1777// ** MySQL settings - You can get this info from your web host ** //
     78
    1879/** The name of the database for WordPress */
    19 define('DB_NAME', 'database_name_here');
     80define( 'DB_NAME', 'database_name_here' );
    2081
    2182/** MySQL database username */
    22 define('DB_USER', 'username_here');
     83define( 'DB_USER', 'username_here' );
    2384
    2485/** MySQL database password */
    25 define('DB_PASSWORD', 'password_here');
     86define( 'DB_PASSWORD', 'password_here' );
    2687
    2788/** MySQL hostname */
    28 define('DB_HOST', 'localhost');
     89define( 'DB_HOST', 'localhost' );
    2990
    3091/** Database Charset to use in creating database tables. */
    31 define('DB_CHARSET', 'utf8');
     92define( 'DB_CHARSET', 'utf8' );
    3293
    3394/** The Database Collate type. Don't change this if in doubt. */
    34 define('DB_COLLATE', '');
     95define( 'DB_COLLATE', '' );
    3596
    36 /**#@+
    37  * Authentication Unique Keys and Salts.
     97/**
     98 *  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
     99 *  ;; Authentication Unique Keys and Salts ;;
     100 *  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
     101 */
     102
     103/**
     104 * Change these to unique phrases!
    38105 *
    39  * Change these to different unique phrases!
    40  * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
    41  * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
     106 * To generate:
     107 * {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
     108 *
     109 * You can change these at any point in time to invalidate all existing cookies.
     110 * This will force all users to have to log in again.
    42111 *
    43112 * @since 2.6.0
    44113 */
    45 define('AUTH_KEY',         'put your unique phrase here');
    46 define('SECURE_AUTH_KEY',  'put your unique phrase here');
    47 define('LOGGED_IN_KEY',    'put your unique phrase here');
    48 define('NONCE_KEY',        'put your unique phrase here');
    49 define('AUTH_SALT',        'put your unique phrase here');
    50 define('SECURE_AUTH_SALT', 'put your unique phrase here');
    51 define('LOGGED_IN_SALT',   'put your unique phrase here');
    52 define('NONCE_SALT',       'put your unique phrase here');
     114define( 'AUTH_KEY',         'put your unique phrase here' );
     115define( 'SECURE_AUTH_KEY',  'put your unique phrase here' );
     116define( 'LOGGED_IN_KEY',    'put your unique phrase here' );
     117define( 'NONCE_KEY',        'put your unique phrase here' );
     118define( 'AUTH_SALT',        'put your unique phrase here' );
     119define( 'SECURE_AUTH_SALT', 'put your unique phrase here' );
     120define( 'LOGGED_IN_SALT',   'put your unique phrase here' );
     121define( 'NONCE_SALT',       'put your unique phrase here' );
    53122
    54 /**#@-*/
     123/**
     124 *  ;;;;;;;;;;;;;;;;;;;;;;;;;;;
     125 *  ;; Database Table Prefix ;;
     126 *  ;;;;;;;;;;;;;;;;;;;;;;;;;;;
     127 */
    55128
    56129/**
    57  * WordPress Database Table prefix.
    58  *
    59  * You can have multiple installations in one database if you give each a unique
    60  * prefix. Only numbers, letters, and underscores please!
     130 * To have multiple installations in one database if give each a unique prefix.
     131 * Only numbers, letters, and underscores.
    61132 */
    62133$table_prefix  = 'wp_';
    63134
    64135/**
    65  * WordPress Localized Language, defaults to English.
    66  *
    67  * Change this to localize WordPress. A corresponding MO file for the chosen
    68  * language must be installed to wp-content/languages. For example, install
    69  * de_DE.mo to wp-content/languages and set WPLANG to 'de_DE' to enable German
    70  * language support.
     136 *  ;;;;;;;;;;;;;;;;;;;;;;;;
     137 *  ;; WordPress Language ;;
     138 *  ;;;;;;;;;;;;;;;;;;;;;;;;
    71139 */
    72 define('WPLANG', '');
    73140
    74141/**
    75  * For developers: WordPress debugging mode.
     142 * WordPress Localized Language
     143 * Default: English
    76144 *
    77  * Change this to true to enable the display of notices during development.
    78  * It is strongly recommended that plugin and theme developers use WP_DEBUG
    79  * in their development environments.
     145 * Change this to localize WordPress.
     146 * A corresponding MO file for the chosen language must be installed to wp-content/languages.
     147 * For example, install de_DE.mo to wp-content/languages and set WPLANG to 'de_DE' to enable German language support.
     148 *
    80149 */
    81 define('WP_DEBUG', false);
     150define( 'WPLANG', '' );
    82151
     152/**
     153 *  ;;;;;;;;;;;;;;;
     154 *  ;; Debugging ;;
     155 *  ;;;;;;;;;;;;;;;
     156 */
     157
     158/**
     159 *  Below are the constants for debugging WordPress.
     160 *
     161 *  If you are developing a WordPress theme or plugin it is highly recommended
     162 *  that you keep debugging on.
     163 *
     164 *  More information:
     165 *  @link http://codex.wordpress.org/Debugging_in_WordPress
     166 *
     167 * NOTE: Remove the # at the start of a line to activate it.
     168 **/
     169
     170/**
     171 * Activate debugging mode.
     172 * @since 2.3.1
     173 * Default: false.
     174 */
     175define( 'WP_DEBUG', false );
     176
     177/**
     178 *  Use development scripts that are shipped with WordPress.
     179 *  Helps to debug script issues.
     180 *  Default: false
     181 */
     182# define( 'SCRIPT_DEBUG', false );
     183
     184/**
     185 *  Controls whether debug output appears inside the HTML of your page.
     186 *  Set to false for production sites to hide errors from site visitors.
     187 *  Default: true
     188 */
     189# define( 'WP_DEBUG_DISPLAY', true );
     190
     191/**
     192 *
     193 *  Saves all errors in a file called debug.log, located in wp-content/debug.log
     194 *  Allows you to keep track of errors that are not displaying on your
     195 *  site (for example, if WP_DEBUG_DISPLAY is set to false).
     196 *  Default: false
     197 */
     198# define( 'WP_DEBUG_LOG', false );
     199
     200/**
     201 *  Saves database queries to an array that can be used to analyze queries.
     202 *  Set to false when not debugging to prevent a performance impact on your site.
     203 *  Default: false
     204 */
     205# define( 'SAVEQUERIES', false );
     206
     207/**
     208 * ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
     209 * ;; Debugging Memory Issues ;;
     210 * ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
     211*/
     212
     213/**
     214 * If you are experiencing memory issues you may wish to define your memory limit.
     215 *
     216 * @link http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP
     217*/
     218
     219/**
     220 * To set PHP memory limit to 64MB.
     221 * @since 2.5
     222 */
     223# define( 'WP_MEMORY_LIMIT', '64MB' );
     224
     225/**
     226 * To set the maximum memory limit.
     227 * @since 2.5
     228*/
     229# define( 'WP_MAX_MEMORY_LIMIT', '256MB' );
     230
    83231/* That's all, stop editing! Happy blogging. */
    84232
     233/**
     234 * ;;;;;;;;;;;;;;;;;;;
     235 * ;; Absolute Path ;;
     236 * ;;;;;;;;;;;;;;;;;;;
     237*/
     238
    85239/** Absolute path to the WordPress directory. */
    86 if ( !defined('ABSPATH') )
    87         define('ABSPATH', dirname(__FILE__) . '/');
     240if ( ! defined( 'ABSPATH' ) ) {
     241        define( 'ABSPATH', dirname( __FILE__ ) . '/' );
     242}
    88243
    89244/** Sets up WordPress vars and included files. */
    90 require_once(ABSPATH . 'wp-settings.php');
     245require_once( ABSPATH . 'wp-settings.php' );