Sets up object properties.
Source
public function __construct() {
$this->multisite = is_multisite();
$this->blog_prefix = $this->multisite ? get_current_blog_id() . ':' : '';
}
Changelog
| Version | Description |
|---|---|
| 2.0.8 | Introduced. |
| CARVIEW |
Sets up object properties.
public function __construct() {
$this->multisite = is_multisite();
$this->blog_prefix = $this->multisite ? get_current_blog_id() . ':' : '';
}
| Uses | Description |
|---|---|
is_multisite()wp-includes/load.php | Determines whether Multisite is enabled. |
get_current_blog_id()wp-includes/load.php | Retrieves the current site ID. |
| Used by | Description |
|---|---|
wp_cache_init()wp-includes/cache.php | Sets up Object Cache Global and assigns it. |
| Version | Description |
|---|---|
| 2.0.8 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.