: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
class wfPersistenceController {
private $_disclosureStates;
public static function shared() {
if ($_shared === false) {
$_shared = new wfPersistenceController();
public function __construct() {
$this->_disclosureStates = wfConfig::get_ser('disclosureStates', array());
* Returns whether the options block is in an active state.
public function isActive($key) {
if (!isset($this->_disclosureStates[$key])) {
return !!$this->_disclosureStates[$key];
* Returns whether the options block has been set.
public function isConfigured($key) {
return isset($this->_disclosureStates[$key]);