public function __construct() { self::$options = array_merge(self::$options, $this->getAllOpt()); if (!is_array(self::$options)) { self::reset_options(); } }
protected static function save_options() { self::$options = array('gravatar' => $_POST['gravatar'], 'googleapis' => $_POST['googleapis'], 'worg' => $_POST['worg'], 'wpcom' => $_POST['wpcom']); update_option('moecdn_options', self::$options); update_option('moecdn_collect', $_POST['collect']); }