ms_cookie_constants [ WordPress Function ]
ms_cookie_constants ( No parameters )
| Defined at: |
|
Soorgelijke functies: wp_cookie_constants, ms_file_constants, ms_upload_constants, ms_subdomain_constants, wp_ssl_constants
Defines Multisite cookie constants.
Source
<?php
function ms_cookie_constants( ) {
global $current_site;
/**
* @since 1.2.0
*/
if ( !defined( 'COOKIEPATH' ) )
define( 'COOKIEPATH', $current_site->path );
/**
* @since 1.5.0
*/
if ( !defined( 'SITECOOKIEPATH' ) )
define( 'SITECOOKIEPATH', $current_site->path );
/**
* @since 2.6.0
*/
if ( !defined( 'ADMIN_COOKIE_PATH' ) ) {
if( !is_subdomain_install() ) {
define( 'ADMIN_COOKIE_PATH', SITECOOKIEPATH );
} else {
define( 'ADMIN_COOKIE_PATH', SITECOOKIEPATH . 'wp-admin' );
}
}
/**
* @since 2.0.0
*/
if ( !defined('COOKIE_DOMAIN') && is_subdomain_install() ) {
if ( !empty( $current_site->cookie_domain ) )
define('COOKIE_DOMAIN', '.' . $current_site->cookie_domain);
else
define('COOKIE_DOMAIN', '.' . $current_site->domain);
}
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- Call to undefined function ms_cookie_constants() in ... - WordPress
Call to undefined function ms_cookie_constants() in multisite after fresh instal (1 post). mynetfocus. Member Posted 1 year ago #. Hi. After I install a fresh copy of ...
wordpress.org - wp-settings.php. - WordPress SVN
... if ( is_multisite() ) ms_cookie_constants( ); // Define constants after multisite is loaded. Cookie-related constants may be overridden in ms_network_cookies().
core.svn.wordpress.org - PHPXRef 0.7 : WordPress : /wp-settings.php source
... 172 } 173 174 do_action( 'muplugins_loaded' ); 175 176 if ( is_multisite() ) 177 ms_cookie_constants( ); 178 179 // Define constants after multisite is loaded.
phpxref.ftwr.co.uk - ms-default-constants.php - Detail view - PHP Cross Reference ...
Jun 1, 2011 ... ms_cookie_constants() ms_file_constants() ms_subdomain_constants() ... ms_cookie_constants( ) X-Ref. Defines Multisite cookie constants.
xref.yoast.com