|
<?php |
|
$is_development = false; |
|
if(is_file('wp-config.development.php')) { |
|
require 'wp-config.development.php'; |
|
$is_development = true; |
|
} elseif(is_file('wp-config.production.php')){ |
|
require 'wp-config.development.php'; |
|
} |
|
|
|
define('DISALLOW_FILE_EDIT', true); |
|
|
|
/**#@+ |
|
* DEBUGGING STUFF |
|
*/ |
|
/** display of notices during development. if false, error_reporting is E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR otherwise E_ALL */ |
|
!defined('WP_DEBUG') && define('WP_DEBUG', false); |
|
|
|
/** The SAVEQUERIES definition saves the database queries to a array and that array can be displayed to help analyze those queries. |
|
* The information saves each query, what function called it, and how long that query took to execute. */ |
|
!defined('SAVE_QUERIES') && define('SAVE_QUERIES', WP_DEBUG); |
|
|
|
!defined('ACTION_DEBUG') && define('ACTION_DEBUG', WP_DEBUG); |
|
|
|
/** This will allow you to edit the scriptname.dev.js files in the wp-includes/js and wp-admin/js directories. */ |
|
!defined('SCRIPT_DEBUG') && define('SCRIPT_DEBUG', WP_DEBUG); |
|
|
|
|
|
/** Add define('WP_DEBUG_LOG', true); to enable php debug logging to WP_CONTENT_DIR/debug.log */ |
|
!defined('WP_DEBUG_LOG') && define('WP_DEBUG_LOG', true); |
|
|
|
/** This determines whether errors should be printed to the screen as part of the output or if they should be hidden from the user. |
|
* Add define('WP_DEBUG_DISPLAY', false); to wp-config.php to use the globally configured setting for display_errors and not force it to On */ |
|
!defined('WP_DEBUG_DISPLAY') && define('WP_DEBUG_DISPLAY', false); |
|
|
|
/** Turns the output of errors on or off, you really never want this on, you should only view errors by reading the log file. */ |
|
ini_set('display_errors', WP_DEBUG_DISPLAY); |
|
|
|
/** Tells whether script error messages should be logged to the server's error log or error_log. */ |
|
ini_set('log_errors', WP_DEBUG_LOG? 'On':'Off'); |
|
|
|
/** Where to log php errors */ |
|
//ini_set('error_log', ASKAPACHE_ROOT . '/logs/php_error.log'); |
|
|
|
/** http://us.php.net/manual/en/timezones.php */ |
|
ini_set('date.timezone', 'Europe/Amsterdam'); |
|
|
|
/** Set the memory limit, otherwise defaults to '32M' */ |
|
ini_set('memory_limit', WP_MEMORY_LIMIT); |