Changeset 12733 for trunk/wp-includes/default-constants.php
- Timestamp:
- 01/15/2010 10:11:12 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/default-constants.php (modified) (26 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/default-constants.php
r12732 r12733 27 27 } 28 28 } 29 29 30 30 /** 31 31 * The $blog_id global, which you can change in the config allows you to create a simple … … 37 37 if ( ! isset($blog_id) ) 38 38 $blog_id = 1; 39 39 40 40 // set memory limits. 41 41 if ( function_exists('memory_get_usage') && ( (int) @ini_get('memory_limit') < abs(intval(WP_MEMORY_LIMIT)) ) ) 42 42 @ini_set('memory_limit', WP_MEMORY_LIMIT); 43 43 44 44 if ( !defined('WP_CONTENT_DIR') ) 45 45 define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); // no trailing slash, full paths only - WP_CONTENT_URL is defined further down 46 46 47 47 // Add define('WP_DEBUG', true); to wp-config.php to enable display of notices during development. 48 48 if ( !defined('WP_DEBUG') ) 49 49 define( 'WP_DEBUG', false ); 50 50 51 51 // 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 52 52 if ( !defined('WP_DEBUG_DISPLAY') ) 53 53 define( 'WP_DEBUG_DISPLAY', true ); 54 54 55 55 // Add define('WP_DEBUG_LOG', true); to enable php debug logging to WP_CONTENT_DIR/debug.log 56 56 if ( !defined('WP_DEBUG_LOG') ) 57 57 define('WP_DEBUG_LOG', false); 58 58 59 59 if ( !defined('WP_CACHE') ) 60 60 define('WP_CACHE', false); 61 61 62 62 /** 63 63 * Private … … 65 65 if ( !defined('MEDIA_TRASH') ) 66 66 define('MEDIA_TRASH', false); 67 67 68 68 if ( !defined('SHORTINIT') ) 69 69 define('SHORTINIT', false); … … 74 74 if ( !defined('WP_CONTENT_URL') ) 75 75 define( 'WP_CONTENT_URL', get_option('siteurl') . '/wp-content'); // full url - WP_CONTENT_DIR is defined further up 76 76 77 77 /** 78 78 * Allows for the plugins directory to be moved from the default location. … … 82 82 if ( !defined('WP_PLUGIN_DIR') ) 83 83 define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' ); // full path, no trailing slash 84 84 85 85 /** 86 86 * Allows for the plugins directory to be moved from the default location. … … 90 90 if ( !defined('WP_PLUGIN_URL') ) 91 91 define( 'WP_PLUGIN_URL', WP_CONTENT_URL . '/plugins' ); // full url, no trailing slash 92 92 93 93 /** 94 94 * Allows for the plugins directory to be moved from the default location. … … 109 109 if ( !defined('WPMU_PLUGIN_DIR') ) 110 110 define( 'WPMU_PLUGIN_DIR', WP_CONTENT_DIR . '/mu-plugins' ); // full path, no trailing slash 111 111 112 112 /** 113 113 * Allows for the mu-plugins directory to be moved from the default location. … … 117 117 if ( !defined('WPMU_PLUGIN_URL') ) 118 118 define( 'WPMU_PLUGIN_URL', WP_CONTENT_URL . '/mu-plugins' ); // full url, no trailing slash 119 119 120 120 /** 121 121 * Allows for the mu-plugins directory to be moved from the default location. … … 130 130 131 131 global $wp_default_secret_key; 132 132 133 133 /** 134 134 * Used to guarantee unique hash cookies … … 137 137 if( !defined('COOKIEHASH') ) 138 138 define('COOKIEHASH', md5(get_option('siteurl'))); 139 139 140 140 /** 141 141 * Should be exactly the same as the default value of SECRET_KEY in wp-config-sample.php … … 143 143 */ 144 144 $wp_default_secret_key = 'put your unique phrase here'; 145 145 146 146 /** 147 147 * It is possible to define this in wp-config.php … … 150 150 if ( !defined('USER_COOKIE') ) 151 151 define('USER_COOKIE', 'wordpressuser_' . COOKIEHASH); 152 152 153 153 /** 154 154 * It is possible to define this in wp-config.php … … 157 157 if ( !defined('PASS_COOKIE') ) 158 158 define('PASS_COOKIE', 'wordpresspass_' . COOKIEHASH); 159 159 160 160 /** 161 161 * It is possible to define this in wp-config.php … … 164 164 if ( !defined('AUTH_COOKIE') ) 165 165 define('AUTH_COOKIE', 'wordpress_' . COOKIEHASH); 166 166 167 167 /** 168 168 * It is possible to define this in wp-config.php … … 171 171 if ( !defined('SECURE_AUTH_COOKIE') ) 172 172 define('SECURE_AUTH_COOKIE', 'wordpress_sec_' . COOKIEHASH); 173 173 174 174 /** 175 175 * It is possible to define this in wp-config.php … … 178 178 if ( !defined('LOGGED_IN_COOKIE') ) 179 179 define('LOGGED_IN_COOKIE', 'wordpress_logged_in_' . COOKIEHASH); 180 180 181 181 /** 182 182 * It is possible to define this in wp-config.php … … 185 185 if ( !defined('TEST_COOKIE') ) 186 186 define('TEST_COOKIE', 'wordpress_test_cookie'); 187 187 188 188 /** 189 189 * It is possible to define this in wp-config.php … … 192 192 if ( !defined('COOKIEPATH') ) 193 193 define('COOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_option('home') . '/' ) ); 194 194 195 195 /** 196 196 * It is possible to define this in wp-config.php … … 199 199 if ( !defined('SITECOOKIEPATH') ) 200 200 define('SITECOOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_option('siteurl') . '/' ) ); 201 201 202 202 /** 203 203 * It is possible to define this in wp-config.php … … 206 206 if ( !defined('ADMIN_COOKIE_PATH') ) 207 207 define( 'ADMIN_COOKIE_PATH', SITECOOKIEPATH . 'wp-admin' ); 208 208 209 209 /** 210 210 * It is possible to define this in wp-config.php … … 213 213 if ( !defined('PLUGINS_COOKIE_PATH') ) 214 214 define( 'PLUGINS_COOKIE_PATH', preg_replace('|https?://[^/]+|i', '', WP_PLUGIN_URL) ); 215 215 216 216 /** 217 217 * It is possible to define this in wp-config.php … … 220 220 if ( !defined('COOKIE_DOMAIN') ) 221 221 define('COOKIE_DOMAIN', false); 222 222 223 223 /** 224 224 * It is possible to define this in wp-config.php … … 228 228 define('FORCE_SSL_ADMIN', false); 229 229 force_ssl_admin(FORCE_SSL_ADMIN); 230 230 231 231 /** 232 232 * It is possible to define this in wp-config.php … … 236 236 define('FORCE_SSL_LOGIN', false); 237 237 force_ssl_login(FORCE_SSL_LOGIN); 238 238 239 239 /** 240 240 * It is possible to define this in wp-config.php … … 243 243 if ( !defined( 'AUTOSAVE_INTERVAL' ) ) 244 244 define( 'AUTOSAVE_INTERVAL', 60 ); 245 245 246 246 /** 247 247 * It is possible to define this in wp-config.php … … 265 265 */ 266 266 define('TEMPLATEPATH', get_template_directory()); 267 267 268 268 /** 269 269 * Web Path to the current active template stylesheet directory
Note: See TracChangeset
for help on using the changeset viewer.