Forked from philiparthurmoore/save-the-children.php
Last active
August 29, 2015 14:02
-
-
Save smckeown/74cce2d31297646fe8f7 to your computer and use it in GitHub Desktop.
Tidying up wp-config.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* The base configuration for WordPress. | |
* | |
* This file has the following configurations: | |
* - MySQL settings | |
* - Authentication Unique Keys and Salts | |
* - Table Prefix | |
* - Secret Keys | |
* - WordPress Language | |
* - Debugging | |
* - Absolute Path | |
* | |
* More information: | |
* {@link http://codex.wordpress.org/Editing_wp-config.php Editing wp-config.php} | |
* | |
* Your MySQL settings will be available from your web host. | |
* | |
* This file is used by the wp-config.php creation script during installation. | |
* | |
* To manually create your website, copy this file with the name "wp-config.php" | |
* and fill in the values. | |
* | |
* @package WordPress | |
*/ | |
/** | |
* ;;;;;;;;;;;;;;;;;;;; | |
* ;; MySQL Settings ;; | |
* ;;;;;;;;;;;;;;;;;;;; | |
*/ | |
// ** MySQL settings - You can get this info from your web host ** // | |
/** The name of the database for WordPress */ | |
define('DB_NAME', 'database_name_here'); | |
/** MySQL database username */ | |
define('DB_USER', 'username_here'); | |
/** MySQL database password */ | |
define('DB_PASSWORD', 'password_here'); | |
/** MySQL hostname */ | |
define('DB_HOST', 'localhost'); | |
/** Database Charset to use in creating database tables. */ | |
define('DB_CHARSET', 'utf8'); | |
/** The Database Collate type. Don't change this if in doubt. */ | |
define('DB_COLLATE', ''); | |
/** | |
* ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
* ;; Authentication Unique Keys and Salts ;; | |
* ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
*/ | |
/** | |
* Change these to unique phrases! | |
* | |
* To generate: | |
* {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service} | |
* | |
* 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. | |
* | |
* @since 2.6.0 | |
*/ | |
define('AUTH_KEY', 'put your unique phrase here'); | |
define('SECURE_AUTH_KEY', 'put your unique phrase here'); | |
define('LOGGED_IN_KEY', 'put your unique phrase here'); | |
define('NONCE_KEY', 'put your unique phrase here'); | |
define('AUTH_SALT', 'put your unique phrase here'); | |
define('SECURE_AUTH_SALT', 'put your unique phrase here'); | |
define('LOGGED_IN_SALT', 'put your unique phrase here'); | |
define('NONCE_SALT', 'put your unique phrase here'); | |
/** | |
* ;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
* ;; Database Table Prefix ;; | |
* ;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
*/ | |
/** | |
* To have multiple installations in one database if give each a unique prefix. | |
* Only numbers, letters, and underscores. | |
*/ | |
$table_prefix = 'wp_'; | |
/** | |
* ;;;;;;;;;;;;;;;;;;;;;;;; | |
* ;; WordPress Language ;; | |
* ;;;;;;;;;;;;;;;;;;;;;;;; | |
*/ | |
/** | |
* WordPress Localized Language | |
* Default: English | |
* | |
* Change this to localize WordPress. | |
* A corresponding MO file for the chosen language must be installed to wp-content/languages. | |
* For example, install de_DE.mo to wp-content/languages and set WPLANG to 'de_DE' to enable German language support. | |
* | |
*/ | |
define('WPLANG', ''); | |
/** | |
* ;;;;;;;;;;;;;;; | |
* ;; Debugging ;; | |
* ;;;;;;;;;;;;;;; | |
*/ | |
/** | |
* Below are the constants for debugging WordPress. | |
* | |
* If you are developing a WordPress theme or plugin it is highly recommended | |
* that you keep debugging on. | |
* | |
* More information: | |
* @link http://codex.wordpress.org/Debugging_in_WordPress | |
* | |
* NOTE: Remove the # at the start of a line to activate it. | |
**/ | |
/** | |
* Activate debugging mode. | |
* @since 2.3.1 | |
* Default: false. | |
*/ | |
define( 'WP_DEBUG', false ); | |
/** | |
* Use development scripts that are shipped with WordPress. | |
* Helps to debug script issues. | |
* Default: false | |
*/ | |
# define('SCRIPT_DEBUG', false); | |
/** | |
* Controls whether debug output appears inside the HTML of your page. | |
* Set to false for production sites to hide errors from site visitors. | |
* Default: true | |
*/ | |
# define('WP_DEBUG_DISPLAY', true); | |
/** | |
* | |
* Saves all errors in a file called debug.log, located in wp-content/debug.log | |
* Allows you to keep track of errors that are not displaying on your | |
* site (for example, if WP_DEBUG_DISPLAY is set to false). | |
* Default: false | |
*/ | |
# define('WP_DEBUG_LOG', false); | |
/** | |
* Saves database queries to an array that can be used to analyze queries. | |
* Set to false when not debugging to prevent a performance impact on your site. | |
* Default: false | |
*/ | |
# define('SAVEQUERIES', false); | |
/** | |
* ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
* ;; Debugging Memory Issues ;; | |
* ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
*/ | |
/** | |
* If you are experiencing memory issues you may wish to define your memory limit. | |
* | |
* @link http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP | |
*/ | |
/** | |
* To set PHP memory limit to 64MB. | |
* @since 2.5 | |
*/ | |
# define('WP_MEMORY_LIMIT', '64MB'); | |
/** | |
* To set the maximum memory limit. | |
* @since 2.5 | |
*/ | |
# define('WP_MAX_MEMORY_LIMIT', '256MB'); | |
/* That's all, stop editing! Happy blogging. */ | |
/** | |
* ;;;;;;;;;;;;;;;;;;; | |
* ;; Absolute Path ;; | |
* ;;;;;;;;;;;;;;;;;;; | |
*/ | |
/** Absolute path to the WordPress directory. */ | |
if ( !defined('ABSPATH') ) | |
define('ABSPATH', dirname(__FILE__) . '/'); | |
/** Sets up WordPress vars and included files. */ | |
require_once(ABSPATH . 'wp-settings.php'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment