wp_initial_constants [ WordPress Function ]
wp_initial_constants ( No parameters )
| See: | |
| Defined at: |
|
Soorgelijke functies: wp_ssl_constants, wp_functionality_constants, wp_cookie_constants, ms_file_constants, wp_templating_constants
Defines initial WordPress constants
Source
<?php
function wp_initial_constants( ) {
global $blog_id;
// set memory limits
if ( !defined('WP_MEMORY_LIMIT') ) {
if( is_multisite() ) {
define('WP_MEMORY_LIMIT', '64M');
} else {
define('WP_MEMORY_LIMIT', '32M');
}
}
if ( ! defined( 'WP_MAX_MEMORY_LIMIT' ) ) {
define( 'WP_MAX_MEMORY_LIMIT', '256M' );
}
/**
* The $blog_id global, which you can change in the config allows you to create a simple
* multiple blog installation using just one WordPress and changing $blog_id around.
*
* @global int $blog_id
* @since 2.0.0
*/
if ( ! isset($blog_id) )
$blog_id = 1;
// set memory limits.
if ( function_exists('memory_get_usage') && ( (int) @ini_get('memory_limit') < abs(intval(WP_MEMORY_LIMIT)) ) )
@ini_set('memory_limit', WP_MEMORY_LIMIT);
if ( !defined('WP_CONTENT_DIR') )
define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); // no trailing slash, full paths only - WP_CONTENT_URL is defined further down
// Add define('WP_DEBUG', true); to wp-config.php to enable display of notices during development.
if ( !defined('WP_DEBUG') )
define( 'WP_DEBUG', false );
// Add define('WP_DEBUG_DISPLAY', null); to wp-config.php use the globally configured setting for
// display_errors and not force errors to be displayed. Use false to force display_errors off.
if ( !defined('WP_DEBUG_DISPLAY') )
define( 'WP_DEBUG_DISPLAY', true );
// Add define('WP_DEBUG_LOG', true); to enable error logging to wp-content/debug.log.
if ( !defined('WP_DEBUG_LOG') )
define('WP_DEBUG_LOG', false);
if ( !defined('WP_CACHE') )
define('WP_CACHE', false);
/**
* Private
*/
if ( !defined('MEDIA_TRASH') )
define('MEDIA_TRASH', false);
if ( !defined('SHORTINIT') )
define('SHORTINIT', false);
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- wp_initial_constants (WordPress Function) - WPSeek.com
WordPress lookup for wp_initial_constants, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com - PHPXRef 0.7 : WordPress : Function Reference: wp_initial_constants()
Function and Method Cross Reference. wp_initial_constants(). Defined at: /wp- includes/default-constants.php -> line 8. Referenced 1 times: /wp-settings.php ...
phpxref.ftwr.co.uk - <?php /** * Defines constants and global variables that can be ...
@package WordPress */ /** * Defines initial WordPress constants * * @see wp_debug_mode() * * @since 3.0.0 */ function wp_initial_constants( ) { global ...
core.svn.wordpress.org - HELP!! Error message w/update! Blog entirely down! - WordPress
Fatal error: Call to undefined function wp_initial_constants() in /public_html/wp- settings.php on line 24. Help please anyone!! My entire blog is down. I am trying ...
wordpress.org