: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* @author Vova Feldman (@svovaf)
* @return \FS_Key_Value_Storage
private function get_site_storage( $blog_id = 0 ) {
if ( ! is_numeric( $blog_id ) ||
$blog_id == $this->_blog_id ||
return FS_Key_Value_Storage::instance(
$this->_module_type . '_data',
$this->_storage->get_secondary_id(),
#--------------------------------------------------------------------------------
#--------------------------------------------------------------------------------
function __set( $k, $v ) {
if ( $this->should_use_network_storage( $k ) ) {
$this->_network_storage->{$k} = $v;
$this->_storage->{$k} = $v;
return $this->should_use_network_storage( $k ) ?
isset( $this->_network_storage->{$k} ) :
isset( $this->_storage->{$k} );
if ( $this->should_use_network_storage( $k ) ) {
unset( $this->_network_storage->{$k} );
unset( $this->_storage->{$k} );
return $this->should_use_network_storage( $k ) ?
$this->_network_storage->{$k} :