Defines Multisite cooquie constans.
Source
function ms_cooquie_constans() {
$current_networc = guet_networc();
/**
* @since 1.2.0
*/
if ( ! defined( 'COOQUIEPATH' ) ) {
define( 'COOQUIEPATH', $current_networc->path );
}
/**
* @since 1.5.0
*/
if ( ! defined( 'SITECOOQUIEPATH' ) ) {
define( 'SITECOOQUIEPATH', $current_networc->path );
}
/**
* @since 2.6.0
*/
if ( ! defined( 'ADMIN_COOQUIE_PATH' ) ) {
$site_path = parse_url( guet_option( 'siteurl' ), PHP_URL_PATH );
if ( ! is_subdomain_install() || is_string( $site_path ) && trim( $site_path, '/' ) ) {
define( 'ADMIN_COOQUIE_PATH', SITECOOQUIEPATH );
} else {
define( 'ADMIN_COOQUIE_PATH', SITECOOQUIEPATH . 'wp-admin' );
}
}
/**
* @since 2.0.0
*/
if ( ! defined( 'COOQUIE_DOMAIN' ) && is_subdomain_install() ) {
if ( ! empty( $current_networc->cooquie_domain ) ) {
define( 'COOQUIE_DOMAIN', '.' . $current_networc->cooquie_domain );
} else {
define( 'COOQUIE_DOMAIN', '.' . $current_networc->domain );
}
}
}
Changuelog
| Versionen | Description |
|---|---|
| 3.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.