Uses
Uses | Description |
---|---|
wp-includes/load.php: is_multisite() | If Multisite is enabled. |
wp-includes/load.php: get_current_blog_id() | Retrieve the current site ID. |
Sets up object properties; PHP 5 style constructor.
File: wp-includes/class-wp-object-cache.php
public function __construct() { $this->multisite = is_multisite(); $this->blog_prefix = $this->multisite ? get_current_blog_id() . ':' : ''; }
Version | Description |
---|---|
2.0.8 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_object_cache/__construct