Changeset 47122 for trunk/src/wp-includes/default-constants.php
- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/default-constants.php
r47088 r47122 7 7 8 8 /** 9 * Defines initial WordPress constants 9 * Defines initial WordPress constants. 10 10 * 11 11 * @see wp_debug_mode() … … 70 70 71 71 if ( ! defined( 'WP_CONTENT_DIR' ) ) { 72 define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); // no trailing slash, full paths only - WP_CONTENT_URL is defined further down72 define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); // No trailing slash, full paths only - WP_CONTENT_URL is defined further down. 73 73 } 74 74 … … 78 78 } 79 79 80 // Add define( 'WP_DEBUG_DISPLAY', null ); to wp-config.php use the globally configured setting for81 // display_errors and not force errors to be displayed. Use false to force display_errorsoff.80 // Add define( 'WP_DEBUG_DISPLAY', null ); to wp-config.php use the globally configured setting 81 // for 'display_errors' and not force errors to be displayed. Use false to force 'display_errors' off. 82 82 if ( ! defined( 'WP_DEBUG_DISPLAY' ) ) { 83 83 define( 'WP_DEBUG_DISPLAY', true ); … … 116 116 } 117 117 118 // Constants for features added to WP that should short-circuit their plugin implementations 118 // Constants for features added to WP that should short-circuit their plugin implementations. 119 119 define( 'WP_FEATURE_BETTER_PASSWORDS', true ); 120 120 … … 142 142 143 143 /** 144 * Defines plugin directory WordPress constants 145 * 146 * Defines must-use plugin directory constants, which may be overridden in the sunrise.php drop-in 144 * Defines plugin directory WordPress constants. 145 * 146 * Defines must-use plugin directory constants, which may be overridden in the sunrise.php drop-in. 147 147 * 148 148 * @since 3.0.0 … … 150 150 function wp_plugin_directory_constants() { 151 151 if ( ! defined( 'WP_CONTENT_URL' ) ) { 152 define( 'WP_CONTENT_URL', get_option( 'siteurl' ) . '/wp-content' ); // full url - WP_CONTENT_DIR is defined further up152 define( 'WP_CONTENT_URL', get_option( 'siteurl' ) . '/wp-content' ); // Full URL - WP_CONTENT_DIR is defined further up. 153 153 } 154 154 … … 159 159 */ 160 160 if ( ! defined( 'WP_PLUGIN_DIR' ) ) { 161 define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' ); // full path, no trailing slash161 define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' ); // Full path, no trailing slash. 162 162 } 163 163 … … 168 168 */ 169 169 if ( ! defined( 'WP_PLUGIN_URL' ) ) { 170 define( 'WP_PLUGIN_URL', WP_CONTENT_URL . '/plugins' ); // full url, no trailing slash170 define( 'WP_PLUGIN_URL', WP_CONTENT_URL . '/plugins' ); // Full URL, no trailing slash. 171 171 } 172 172 … … 187 187 */ 188 188 if ( ! defined( 'WPMU_PLUGIN_DIR' ) ) { 189 define( 'WPMU_PLUGIN_DIR', WP_CONTENT_DIR . '/mu-plugins' ); // full path, no trailing slash189 define( 'WPMU_PLUGIN_DIR', WP_CONTENT_DIR . '/mu-plugins' ); // Full path, no trailing slash. 190 190 } 191 191 … … 196 196 */ 197 197 if ( ! defined( 'WPMU_PLUGIN_URL' ) ) { 198 define( 'WPMU_PLUGIN_URL', WP_CONTENT_URL . '/mu-plugins' ); // full url, no trailing slash198 define( 'WPMU_PLUGIN_URL', WP_CONTENT_URL . '/mu-plugins' ); // Full URL, no trailing slash. 199 199 } 200 200 … … 211 211 212 212 /** 213 * Defines cookie related WordPress constants213 * Defines cookie-related WordPress constants. 214 214 * 215 215 * Defines constants after multisite is loaded. … … 219 219 function wp_cookie_constants() { 220 220 /** 221 * Used to guarantee unique hash cookies 221 * Used to guarantee unique hash cookies. 222 222 * 223 223 * @since 1.5.0 … … 345 345 346 346 /** 347 * Defines functionality related WordPress constants347 * Defines functionality-related WordPress constants. 348 348 * 349 349 * @since 3.0.0 … … 354 354 */ 355 355 if ( ! defined( 'AUTOSAVE_INTERVAL' ) ) { 356 define( 'AUTOSAVE_INTERVAL', 60);356 define( 'AUTOSAVE_INTERVAL', MINUTE_IN_SECONDS ); 357 357 } 358 358 … … 372 372 */ 373 373 if ( ! defined( 'WP_CRON_LOCK_TIMEOUT' ) ) { 374 define( 'WP_CRON_LOCK_TIMEOUT', 60 ); // In seconds375 } 376 } 377 378 /** 379 * Defines templating related WordPress constants374 define( 'WP_CRON_LOCK_TIMEOUT', MINUTE_IN_SECONDS ); 375 } 376 } 377 378 /** 379 * Defines templating-related WordPress constants. 380 380 * 381 381 * @since 3.0.0 … … 383 383 function wp_templating_constants() { 384 384 /** 385 * Filesystem path to the current active template directory 385 * Filesystem path to the current active template directory. 386 386 * 387 387 * @since 1.5.0 … … 390 390 391 391 /** 392 * Filesystem path to the current active template stylesheet directory 392 * Filesystem path to the current active template stylesheet directory. 393 393 * 394 394 * @since 2.1.0
Note: See TracChangeset
for help on using the changeset viewer.